From 2c84adb72615f44dcf534424b75ad0478a948156 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Sat, 24 Jan 2009 20:35:05 +0100 Subject: [PATCH] objectManager: Don't try to display non-existent entries --- include/objectManager.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/objectManager.php b/include/objectManager.php index 8d915a8..86dc48d 100644 --- a/include/objectManager.php +++ b/include/objectManager.php @@ -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)