diff --git a/model/DataObject.php b/model/DataObject.php index 73014946d..0b970c63e 100644 --- a/model/DataObject.php +++ b/model/DataObject.php @@ -639,7 +639,7 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity * @return boolean true if this object exists */ public function exists() { - return ($this->record && $this->record['ID'] > 0); + return (isset($this->record['ID']) && $this->record['ID'] > 0); } /**