summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-09-08 11:06:34 -0300
committerRenato Botelho <renato@netgate.com>2015-09-08 11:06:34 -0300
commita01cf3dc349ec1d0500cc18884074ebe5fb5e035 (patch)
tree91ef34fc45be0b14c09bf1fa9067e5ab1f8c2334
parent68398e4b5ec22b91ea427d2e6f654add930f63bf (diff)
parent68d6d0b8c027705b66d38caa3218abb979f70623 (diff)
downloadpfsense-a01cf3dc349ec1d0500cc18884074ebe5fb5e035.zip
pfsense-a01cf3dc349ec1d0500cc18884074ebe5fb5e035.tar.gz
Merge pull request #1840 from phil-davis/patch-6
-rw-r--r--etc/inc/notices.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/notices.inc b/etc/inc/notices.inc
index 91d3800..7dc2834 100644
--- a/etc/inc/notices.inc
+++ b/etc/inc/notices.inc
@@ -80,6 +80,9 @@ function file_notice($id, $notice, $category = "General", $url = "", $priority =
'category' => $category,
'priority' => $priority,
);
+ while (isset($queue[$queuekey])) {
+ $queuekey++;
+ }
$queue[$queuekey] = $toqueue;
$queueout = fopen($notice_path, "w");
if(!$queueout) {
OpenPOWER on IntegriCloud