objectManager: Don't print reasons given when there are none

This commit is contained in:
Alexander Nicolaysen Sørnes
2008-07-06 17:07:37 +02:00
committed by Chris Morgan
parent ea06e374b7
commit 43b73d2fae

View File

@@ -1564,14 +1564,20 @@ class mail
$this->sMessage .= "The action was performed by ".$_SESSION['current']->sRealname."\n";
switch($sAction)
if($sReplyText)
{
case "delete":
$this->sMessage .= "Reasons given\n";
break;
}
switch($sAction)
{
case "delete":
$this->sMessage .= "Reasons given\n";
break;
}
$this->sMessage .= $sReplyText;
$this->sMessage .= $sReplyText;
} else
{
$this->sMessage .= 'No reasons given';
}
mail_appdb($this->sRecipients, $this->sSubject, $this->sMessage);
}