BUG Fix undefined index ID

This commit is contained in:
Damian Mooyman 2013-10-30 10:34:09 +13:00
parent a0b7bfc7a5
commit 22f5f4d644

View File

@ -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);
}
/**