diff --git a/app/calls_active/calls_active.php b/app/calls_active/calls_active.php index b39f6ff893..23dde499b1 100644 --- a/app/calls_active/calls_active.php +++ b/app/calls_active/calls_active.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-2019 + Portions created by the Initial Developer are Copyright (C) 2008-2023 the Initial Developer. All Rights Reserved. Contributor(s): @@ -46,7 +46,7 @@ $text = $language->get(); //get the HTTP values and set as variables - $show = trim($_REQUEST["show"]); + $show = trim($_REQUEST["show"] ?? ''); if ($show != "all") { $show = ''; } //show the header @@ -56,7 +56,7 @@ //load gateways into a session variable $sql = "select gateway_uuid, domain_uuid, gateway from v_gateways where enabled = 'true' "; $database = new database; - $gateways = $database->select($sql, $parameters, 'all'); + $gateways = $database->select($sql, $parameters ?? null, 'all'); foreach ($gateways as $row) { $_SESSION['gateways'][$row['gateway_uuid']] = $row['gateway']; } diff --git a/app/calls_active/calls_active_inc.php b/app/calls_active/calls_active_inc.php index e14ff97aaf..33e25c94b5 100644 --- a/app/calls_active/calls_active_inc.php +++ b/app/calls_active/calls_active_inc.php @@ -156,7 +156,7 @@ echo "\n"; if (permission_exists('call_active_hangup')) { echo " \n"; - echo " \n"; + echo " \n"; echo " \n"; } echo " ".$text['label-profile']."\n"; diff --git a/app/calls_active/calls_exec.php b/app/calls_active/calls_exec.php index bb34421d81..3821620331 100644 --- a/app/calls_active/calls_exec.php +++ b/app/calls_active/calls_exec.php @@ -70,7 +70,7 @@ } } } - if (is_uuid($_REQUEST['uuid'])) { + if (!empty($_REQUEST['uuid']) && is_uuid($_REQUEST['uuid'])) { $calls[] = $_REQUEST['uuid']; }