fix bugs in php 8.1 changes (#6744)

* Update voicemail_greetings.php

* Update recordings.php

* Update recording_edit.php

* Update phrases.php

* Update phrase_edit.php

* Update music_on_hold_edit.php

* Update fax_queue.php

* Update extensions.php

* Update email_templates.php

* Update email_queue_edit.php

* Update dialplan_inbound_add.php

* Update device_profiles.php

* Update device_profile_copy.php

* Update contact_address_edit.php

* Update call_recordings.php

* Update call_center_agent_edit.php

* Update call_center_agents.php

* Update call_center_queues.php

* Update call_block.php

* Update menu_edit.php

* Update default_setting_edit.php

* Update database_edit.php
This commit is contained in:
Alex
2023-06-05 12:41:28 -06:00
committed by GitHub
parent 791be82f27
commit fb8d0e2983
22 changed files with 43 additions and 47 deletions

View File

@@ -46,7 +46,7 @@
$text = $language->get();
//action add or update
if (is_uuid($_REQUEST["id"])) {
if (!empty($_REQUEST["id"]) && is_uuid($_REQUEST["id"])) {
$action = "update";
$music_on_hold_uuid = $_REQUEST["id"];
}
@@ -113,7 +113,7 @@
}
//add or update the database
if ($_POST["persistformvar"] != "true") {
if (empty($_POST["persistformvar"])) {
if ($action == "add" && permission_exists('music_on_hold_add')) {
//begin insert array
$array['music_on_hold'][0]['music_on_hold_uuid'] = uuid();
@@ -174,7 +174,7 @@
}
//pre-populate the form
if (count($_GET) > 0 && is_uuid($_GET["id"]) && $_POST["persistformvar"] != "true") {
if (count($_GET) > 0 && is_uuid($_GET["id"]) && empty($_POST["persistformvar"])) {
$music_on_hold_uuid = $_GET["id"];
$sql = "select * from v_music_on_hold ";
$sql .= "where ( ";