PHP Warning: Variable passed to each() is not an array or object in /secret/path/functions.php on line 2455
HEre is the code:
Line 2455 is
while (list($devnul,$query)=each($shutdownqueries)) {
I'm using PHP accelerator and PHP 4.2.3
Any ideas?
HEre is the code:
PHP Code:
// ###################### Start doshutdown #######################
$shutdownqueries=array();
function doshutdown() {
global $shutdownqueries,$DB_site;
if (is_array($shutdownqueries)) {
while (list($devnul,$query)=each($shutdownqueries)) {
$DB_site->query($query);
}
}
while (list($devnul,$query)=each($shutdownqueries)) {
I'm using PHP accelerator and PHP 4.2.3
Any ideas?
Comment