objectManager: Don't attempt to show deleted entries

This commit is contained in:
Alexander Nicolaysen Sørnes
2009-06-28 14:11:52 +02:00
parent edfccdaaab
commit a3031b6e21
2 changed files with 4 additions and 3 deletions

View File

@@ -745,9 +745,6 @@ class Application {
{
$sError = 'You do not have permission to view this entry';
if($this->objectGetState() == 'deleted')
$sError = 'This entry has been deleted; it\'s contents may have been moved to another entry';
objectManager::error_exit($sError);
}

View File

@@ -1303,6 +1303,10 @@ class ObjectManager
if(!$oObject->objectGetId())
$this->error_exit("Entry not found (class: {$this->sClass}, id: {$this->iId})");
/* Check if the entry has been deleted */
if($oObject->objectGetState() == 'deleted')
$this->error_exit("This entry has been deleted (class: {$this->sClass}, id: {$this->iId})<br />Its content may have been moved to another entry");
$aVars = $this->get_custom_vars($aClean, "view");
echo "<br />";