Hi
In my Cache folder I have lots of debug files. An example file name would be myDEBUG-adm-1309940535-874917.log
The contents are the same in all:
[06-Jul-2011 09:22:15] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/*****/public_html/******/includes/classes/object_info.php on line 29
[06-Jul-2011 09:22:15] PHP Warning: Variable passed to each() is not an array or object in /home/******/public_html/**********/includes/classes/object_info.php on line 30
and the contents of object_info.php:
PHP Code:
class objectInfo {
// class constructor
function objectInfo($object_array) {
//this line should be added, but should be tested first:
// if (!is_array($object_array)) return;
reset($object_array);
while (list($key, $value) = each($object_array)) {
$this->$key = zen_db_prepare_input($value);
}
}
}
?>
Any help?
Bookmarks