objectManager: Don't try to display non-existent entries

This commit is contained in:
Alexander Nicolaysen Sørnes
2009-01-24 20:35:05 +01:00
parent 1e277c3da4
commit 2c84adb726

View File

@@ -1073,6 +1073,10 @@ class ObjectManager
$oObject = new $this->sClass($this->iId);
/* Check that the entry exists */
if(!$oObject->objectGetId())
$this->error_exit("Entry not found (class: {$this->sClass}, id: {$this->iId})");
$aVars = $this->get_custom_vars($aClean, "view");
if(!$aVars)