diff --git a/include/objectManager.php b/include/objectManager.php index 09c027b..92aad90 100644 --- a/include/objectManager.php +++ b/include/objectManager.php @@ -181,6 +181,14 @@ class ObjectManager $oObject = new $this->sClass($this->iId); + /* The entry does not exist */ + if(!$oObject->objectGetId()) + { + echo "There is no entry with that id in the database.\n"; + echo ""; + return; + } + /* Display errors, if any, and fetch form data */ if($this->displayErrors($sErrors)) {