From fb2cf4d8cc7109a2128f426015d45fad4e7457a6 Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@enhancesoft.com> Date: Sun, 11 Aug 2013 23:26:10 +0000 Subject: [PATCH] Bug fix :( --- include/client/view.inc.php | 2 +- include/staff/ticket-view.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/client/view.inc.php b/include/client/view.inc.php index 782653f7a..c94cddd85 100644 --- a/include/client/view.inc.php +++ b/include/client/view.inc.php @@ -62,7 +62,7 @@ if(!$dept || !$dept->isPublic()) if($ticket->getThreadCount() && ($thread=$ticket->getClientThread())) { $threadType=array('M' => 'message', 'R' => 'response'); foreach($thread as $entry) { - if($entry['body'], '-') + if($entry['body']=='-') $entry['body'] = '(EMPTY)'; //Making sure internal notes are not displayed due to backend MISTAKES! diff --git a/include/staff/ticket-view.inc.php b/include/staff/ticket-view.inc.php index 9d5cc3a70..96ef6f2aa 100644 --- a/include/staff/ticket-view.inc.php +++ b/include/staff/ticket-view.inc.php @@ -332,7 +332,7 @@ if(!$cfg->showNotesInline()) { ?> $types[] = 'N'; if(($thread=$ticket->getThreadEntries($types))) { foreach($thread as $entry) { - if($entry['body'], '-') + if($entry['body']=='-') $entry['body'] = '(EMPTY)'; ?> <table class="<?php echo $threadTypes[$entry['thread_type']]; ?>" cellspacing="0" cellpadding="1" width="940" border="0"> -- GitLab