From 7a9b9c81709cd98066e613c53e3f86dad07da9a2 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Thu, 28 Apr 2016 21:29:54 -0600 Subject: [PATCH] Check the array isset in active calls. --- app/calls_active/calls_active_inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/calls_active/calls_active_inc.php b/app/calls_active/calls_active_inc.php index 4891ec0dc6..74bb0e2296 100644 --- a/app/calls_active/calls_active_inc.php +++ b/app/calls_active/calls_active_inc.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2012 + Portions created by the Initial Developer are Copyright (C) 2008-2016 the Initial Developer. All Rights Reserved. Contributor(s): @@ -94,7 +94,7 @@ else { echo ""; $rows = array(); - foreach ($results["rows"] as &$row) { + if (isset($results["rows"])) foreach ($results["rows"] as &$row) { //determine show all if (!($show == 'all' && permission_exists('call_active_all'))) { $foreign_call = true;