Don't display editor for non-existent entries
This commit is contained in:
committed by
WineHQ
parent
d99f705863
commit
52c0e75af9
@@ -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))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user