From e5529938ea029ac0f416f96fbdc481f66001d0eb Mon Sep 17 00:00:00 2001 From: zotlabs Date: Thu, 16 Aug 2018 12:35:57 -0700 Subject: [PATCH] Suppress duplicate info() messages. This was done long for notice(), but info() was overlooked at that time. --- boot.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boot.php b/boot.php index 3bea050dd..955e616eb 100755 --- a/boot.php +++ b/boot.php @@ -1785,6 +1785,10 @@ function info($s) { return; if(! x($_SESSION, 'sysmsg_info')) $_SESSION['sysmsg_info'] = array(); + + if(in_array($s, $_SESSION['sysmsg_info'])) + return; + if(App::$interactive) $_SESSION['sysmsg_info'][] = $s; }