Module: appdb Branch: master Commit: 43b73d2faef84af2d4e3d736bf217670e971ee52 URL: http://source.winehq.org/git/appdb.git/?a=commit;h=43b73d2faef84af2d4e3d736b...
Author: Alexander Nicolaysen Sørnes alex@thehandofagony.com Date: Sun Jul 6 17:07:37 2008 +0200
objectManager: Don't print reasons given when there are none
---
include/objectManager.php | 18 ++++++++++++------ 1 files 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); }