From de37a5ee15a684ee3df0c7a5baaabac7844687af Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 24 Oct 2018 10:47:10 -0600 Subject: [PATCH] Update pdo.php --- resources/pdo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/pdo.php b/resources/pdo.php index be2fd145b5..32f6d46c8a 100644 --- a/resources/pdo.php +++ b/resources/pdo.php @@ -334,7 +334,7 @@ if ($db_type == "pgsql") { } //check the domain cidr range - if (is_array($_SESSION['domain']["cidr"]) && !defined('STDIN')) { + if (isset($_SESSION['domain']["cidr"]) && !defined('STDIN')) { $found = false; foreach($_SESSION['domain']["cidr"] as $cidr) { if (check_cidr($cidr, $_SERVER['REMOTE_ADDR'])) { @@ -349,7 +349,7 @@ if ($db_type == "pgsql") { } //check the api cidr range - if (is_array($_SESSION['api']["cidr"])) { + if (isset($_SESSION['api']["cidr"])) { $found = false; foreach($_SESSION['api']["cidr"] as $cidr) { if (check_cidr($cidr, $_SERVER['REMOTE_ADDR'])) {