diff --git a/web/includes/Object.php b/web/includes/Object.php index 49659c448..0c59e2584 100644 --- a/web/includes/Object.php +++ b/web/includes/Object.php @@ -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();