check if comment has been set already in list of receiption comments

This commit is contained in:
Uwe Steinmann 2017-07-20 17:01:25 +02:00
parent c03566336a
commit 28e84443d8

View File

@ -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'])));