From 1380f023243983cb1ac27a613026f5a08feafa37 Mon Sep 17 00:00:00 2001 From: PiBa-NL Date: Wed, 29 Jun 2016 21:03:57 +0200 Subject: ipsec widget, check for valid array (cherry picked from commit 658180daffe0fe5f005b6fe6b528c758309dffef) --- src/usr/local/www/widgets/widgets/ipsec.widget.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/usr/local/www/widgets/widgets/ipsec.widget.php b/src/usr/local/www/widgets/widgets/ipsec.widget.php index 0fcdc75..8bf48cb 100644 --- a/src/usr/local/www/widgets/widgets/ipsec.widget.php +++ b/src/usr/local/www/widgets/widgets/ipsec.widget.php @@ -181,6 +181,9 @@ if ($_REQUEST && $_REQUEST['ajax']) { break; case "mobile" : + if (!is_array($mobile['pool'])) { + break; + } foreach ($mobile['pool'] as $pool) { if (!is_array($pool['lease'])) { continue; -- cgit v1.1