From 30db89c7029c7773c6a1949d50e3da88cab7667c Mon Sep 17 00:00:00 2001 From: Tim Fry Date: Mon, 3 Mar 2025 15:15:37 -0400 Subject: [PATCH] use boolean setting as true boolean --- app/basic_operator_panel/resources/content.php | 2 +- app/xml_cdr/resources/classes/xml_cdr.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/basic_operator_panel/resources/content.php b/app/basic_operator_panel/resources/content.php index 341a59e444..6fc321a816 100644 --- a/app/basic_operator_panel/resources/content.php +++ b/app/basic_operator_panel/resources/content.php @@ -353,7 +353,7 @@ if (is_array($activity)) { } else { //unregistered extension - if (!empty($_SESSION['operator_panel']['show_unregistered']['boolean']) && $_SESSION['operator_panel']['show_unregistered']['boolean'] == 'true') { + if (!empty($_SESSION['operator_panel']['show_unregistered']['boolean']) && $_SESSION['operator_panel']['show_unregistered']['boolean']) { $css_class = "ur_ext"; } else { diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index 8d9f14e136..26a18eb2a8 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -369,7 +369,7 @@ if (!class_exists('xml_cdr')) { //skip call detail records for calls blocked by call block if (isset($xml->variables->call_block) && !empty($this->settings->get('call_block', 'save_call_detail_record'))) { - if ($xml->variables->call_block == 'true' && $this->settings->get('call_block', 'save_call_detail_record') == 'false') { + if ($xml->variables->call_block == 'true' && $this->settings->get('call_block', 'save_call_detail_record', false) !== true) { //delete the xml cdr file if (!empty($this->settings->get('switch', 'log'))) { $xml_cdr_dir = $this->settings->get('switch', 'log').'/xml_cdr';