array_unique returns NULL
I am dealing with legacy code written by another team and someone asked me why his images were not showing up...
Took me an hour to dig that one out.
Simply because the optional second parameter to array_unique() was only added in php 5.2.9 and we were using 5.2.4 ... Therefore it was generating an error that was hidden (because of error_reporting) and returning null.
I removed the second parameter and VOILA!
Too bad the sysadmin does not allow us to upgrade PHP. :)
Make a Payment to Christian Roy