Warning: array_diff(): Argument #1 is not an array in XXXXXXXXXX/calendar/lib.php on line 123
It seems to appear in cases when both Global events and Course events are hidden.
Is this a known bug or shall I put my focus on the code and search for my fault?
Thanx a lot...
After installing in a new release of moodle 1.3, I got the same error appear after hidding the Global Event and Course Event and this errors appeared...
Warning: Argument #1 to array_diff() is not an array in ../moodle/calendar/lib.php on line 123
Warning: Argument #1 to array_diff() is not an array in ../moodle/calendar/lib.php on line 308
By enabling Global Event and Course Event the said error will disappear, try hidding it again the error will appear..
calendar/lib.php, line 123, find:
And then repeat the exact same procedure in line 308, that is:
calendar/lib.php, line 308, find:
This does not affect the operation of the calendar at all, it is just an ugly warning message. Sorry for any invonvenience!
Thanks for the reply... Hope this will be included in moodle 1.3 release
The correct code you should replace the red lines with is:
Again, sorry for the mixup. I don't know right now if and how and when this is going to get into the 1.3 release archive, but I believe it will.
There may be a 1.3.1 later on, or maybe someone wants to create a list of patches.
But I will patch my site with your code.
Have a nice time and thanx a lot for this great module.