Closed (duplicate)
Project:
ImageCache
Version:
5.x-2.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Dec 2008 at 06:02 UTC
Updated:
6 Jan 2009 at 02:54 UTC
Hi,
I received the following warnings after upgrading imagecache from the previous recommended version:
# warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/xyz/public_html/update.php on line 309.
# warning: Invalid argument supplied for foreach() in /home/xyz/public_html/update.php on line 542.
#341388: Imagecache Upgrade Problem reports the same warnings, plus one additional warning that I did not receive. If these issues are the same, feel free to close my issue out and I'll follow the other one. Thanks.
Comments
Comment #1
cedarm commentedI believe these warnings are harmless. The update function is supposed to return an array of queries to run and it doesn't return anything. There are no queries, only two function calls.
If you add a return array(); to the end of function imagecache_update_5() the warnings go away.
Comment #2
drewish commentedthis was fixed in #327919: Update missing return value