Warning: array_keys() [function.array-keys]: The first argument should be an array in [path]/includes/functions.php on line 4227
Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php on line 4227
Fatal error: Call to a member function query_read_slave() on a non-object in /mypath/includes/functions.php on line 3189
I have plenty of experience in PHP, but I haven't encountered a problem like this before. I really would prefer to not have to hack this together by hard coding the conversion code everywhere I need it. Does anyone have any ideas on why it breaks when within a function?