objectManager: Don't print reasons given when there are none
This commit is contained in:
committed by
Chris Morgan
parent
ea06e374b7
commit
43b73d2fae
@@ -1564,14 +1564,20 @@ class mail
|
|||||||
|
|
||||||
$this->sMessage .= "The action was performed by ".$_SESSION['current']->sRealname."\n";
|
$this->sMessage .= "The action was performed by ".$_SESSION['current']->sRealname."\n";
|
||||||
|
|
||||||
switch($sAction)
|
if($sReplyText)
|
||||||
{
|
{
|
||||||
case "delete":
|
switch($sAction)
|
||||||
$this->sMessage .= "Reasons given\n";
|
{
|
||||||
break;
|
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);
|
mail_appdb($this->sRecipients, $this->sSubject, $this->sMessage);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user