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;