Don't display editor for non-existent entries

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-06-19 00:29:37 +00:00
committed by WineHQ
parent d99f705863
commit 52c0e75af9

View File

@@ -181,6 +181,14 @@ class ObjectManager
$oObject = new $this->sClass($this->iId); $oObject = new $this->sClass($this->iId);
/* The entry does not exist */
if(!$oObject->objectGetId())
{
echo "<font color=\"red\">There is no entry with that id in the database</font>.\n";
echo "</div>";
return;
}
/* Display errors, if any, and fetch form data */ /* Display errors, if any, and fetch form data */
if($this->displayErrors($sErrors)) if($this->displayErrors($sErrors))
{ {