summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/head.inc
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-09-09 11:58:02 -0400
committerStephen Beaver <sbeaver@netgate.com>2015-09-09 11:58:02 -0400
commit309e8f8f08b23eacbd40f6f99572d7116124f1d7 (patch)
treeb34b500cdb249241de94653bf2baa58d15d68f3f /src/usr/local/www/head.inc
parent635f649d039c5a39ed25cb9c745b0e5870996526 (diff)
downloadpfsense-309e8f8f08b23eacbd40f6f99572d7116124f1d7.zip
pfsense-309e8f8f08b23eacbd40f6f99572d7116124f1d7.tar.gz
Fixed Modal class issues
FInished interfaces.php (probably) Fixed notices error in head.inc
Diffstat (limited to 'src/usr/local/www/head.inc')
-rwxr-xr-xsrc/usr/local/www/head.inc15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/usr/local/www/head.inc b/src/usr/local/www/head.inc
index d332ced..75b9ee5 100755
--- a/src/usr/local/www/head.inc
+++ b/src/usr/local/www/head.inc
@@ -398,13 +398,16 @@ FIXME: addHtml does not exist
<div class="modal-body">
<?php
$noticeCategories = array();
-foreach ($notices as $time => $notice)
-{
- if (!isset($noticeCategories[ $notice['category'] ]))
- $noticeCategories[ $notice['category'] ] = array();
- $notice['time'] = $time;
- array_push($noticeCategories[ $notice['category'] ], $notice);
+if(is_array($notices)) {
+ foreach ($notices as $time => $notice)
+ {
+ if (!isset($noticeCategories[ $notice['category'] ]))
+ $noticeCategories[ $notice['category'] ] = array();
+
+ $notice['time'] = $time;
+ array_push($noticeCategories[ $notice['category'] ], $notice);
+ }
}
foreach ($noticeCategories as $category => $catNotices):?>
OpenPOWER on IntegriCloud