aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-08-16 12:35:57 -0700
committerzotlabs <mike@macgirvin.com>2018-08-16 12:35:57 -0700
commite5529938ea029ac0f416f96fbdc481f66001d0eb (patch)
tree79601e43e7a49467b7bdca2fa0e8229ed62b7b6d /boot.php
parent32acb0ff01b8fde3801fafbd7953aa36b5933f96 (diff)
downloadvolse-hubzilla-e5529938ea029ac0f416f96fbdc481f66001d0eb.tar.gz
volse-hubzilla-e5529938ea029ac0f416f96fbdc481f66001d0eb.tar.bz2
volse-hubzilla-e5529938ea029ac0f416f96fbdc481f66001d0eb.zip
Suppress duplicate info() messages. This was done long for notice(), but info() was overlooked at that time.
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php4
1 files changed, 4 insertions, 0 deletions
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;
}