From 28e84443d8c4130faadfa7947c3241ad3536c020 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 20 Jul 2017 17:01:25 +0200 Subject: [PATCH] check if comment has been set already in list of receiption comments --- views/bootstrap/class.Bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 76e80312a..12b3200ab 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -2097,7 +2097,7 @@ $(document).ready( function() { if($r['comment']) { // $allcomments[''.$r['status']][] = htmlspecialchars($r['comment']); $m5 = md5(trim($r['comment'])); - if($allcomments[''.$r['status']][$m5]) + if(isset($allcomments[''.$r['status']][$m5])) $allcomments[''.$r['status']][$m5]['n']++; else $allcomments[''.$r['status']][$m5] = array('n'=>1, 'c'=>htmlspecialchars(trim($r['comment'])));