From 43b73d2faef84af2d4e3d736bf217670e971ee52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Sun, 6 Jul 2008 17:07:37 +0200 Subject: [PATCH] objectManager: Don't print reasons given when there are none --- include/objectManager.php | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/include/objectManager.php b/include/objectManager.php index b351965..088746c 100644 --- a/include/objectManager.php +++ b/include/objectManager.php @@ -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); }