Allow Objects with no Id, they can't be cached but can be used.
parent
f650d300d4
commit
7824613e53
|
@ -32,13 +32,13 @@ class ZM_Object {
|
|||
}
|
||||
|
||||
if ( $row ) {
|
||||
if (!isset($row['Id'])) {
|
||||
Error("No Id in " . print_r($row, true));
|
||||
return;
|
||||
}
|
||||
foreach ($row as $k => $v) {
|
||||
$this->$k = $v;
|
||||
}
|
||||
if (!isset($row['Id'])) {
|
||||
Debug("No Id in " . print_r($row, true));
|
||||
return;
|
||||
}
|
||||
global $object_cache;
|
||||
if (!isset($object_cache[$class])) {
|
||||
$object_cache[$class] = array();
|
||||
|
|
Loading…
Reference in New Issue