Default Settings: Updates for PHP 8.1

This commit is contained in:
fusionate 2023-06-06 21:45:02 +00:00
parent 4783d2dbcc
commit 4e77106a4c
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2021
Portions created by the Initial Developer are Copyright (C) 2008-2023
the Initial Developer. All Rights Reserved.
Contributor(s):
@ -46,8 +46,8 @@ $language = new text;
$text = $language->get();
//set the variables
$search = $_REQUEST['search'] ?? '';
$domain_uuid = $_GET['id'];
$search = $_REQUEST['search'] ?? null;
$domain_uuid = $_GET['id'] ?? null;
//reload default settings
require "resources/classes/domains.php";

View File

@ -139,7 +139,7 @@ if (!class_exists('default_settings')) {
$sql = "select ".$this->name."_uuid as uuid, ".$this->toggle_field." as toggle from v_".$this->table." ";
$sql .= "where ".$this->name."_uuid in (".implode(', ', $uuids).") ";
$database = new database;
$rows = $database->select($sql, $parameters, 'all');
$rows = $database->select($sql, $parameters ?? null, 'all');
if (is_array($rows) && @sizeof($rows) != 0) {
foreach ($rows as $row) {
$states[$row['uuid']] = $row['toggle'];