From efb71af6f45449cb0cb2d9cc3434933c0eb93a7b Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 12 Sep 2015 06:51:51 -0400 Subject: [PATCH] Fix error report #14326 Signed-off-by: Marc Delisle --- ChangeLog | 1 + libraries/ip_allow_deny.lib.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/ChangeLog b/ChangeLog index 132331f1a7..019f81f0c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ phpMyAdmin - ChangeLog ====================== 4.5.1.0 (not yet released) +- issue Invalid argument supplied for foreach() 4.5.0.0 (not yet released) + rfe Pagination for GIS visualization diff --git a/libraries/ip_allow_deny.lib.php b/libraries/ip_allow_deny.lib.php index ecd55a7514..81fabc9f7f 100644 --- a/libraries/ip_allow_deny.lib.php +++ b/libraries/ip_allow_deny.lib.php @@ -285,6 +285,9 @@ function PMA_allowDeny($type) // copy rule database $rules = $cfg['Server']['AllowDeny']['rules']; + if (! is_array($rules)) { + $rules = array(); + } // lookup table for some name shortcuts $shortcuts = array(