diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-09-09 11:58:02 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-09-09 11:58:02 -0400 |
commit | 309e8f8f08b23eacbd40f6f99572d7116124f1d7 (patch) | |
tree | b34b500cdb249241de94653bf2baa58d15d68f3f /src/usr/local/www/head.inc | |
parent | 635f649d039c5a39ed25cb9c745b0e5870996526 (diff) | |
download | pfsense-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-x | src/usr/local/www/head.inc | 15 |
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):?> |