voicemail edit, log viewer, and sip status php 8.1 changes (#6738)
* Update voicemail_edit.php * Update sip_status.php * Update message.php * Update log_viewer.php * Update log_viewer.php * Update sip_status.php
This commit is contained in:
@@ -66,11 +66,12 @@
|
||||
$show_option_delete = '';
|
||||
$voicemail_option_digits = '';
|
||||
$voicemail_option_description = '';
|
||||
$voicemail_mail_to = '';
|
||||
|
||||
//get http variables and set them to php variables
|
||||
$referer_path = $_REQUEST["referer_path"] ?? '';
|
||||
$referer_query = $_REQUEST["referer_query"] ?? '';
|
||||
if (count($_POST) > 0) {
|
||||
if (!empty($_POST)) {
|
||||
|
||||
//process the http post data by submitted action
|
||||
if ($_POST['action'] != '' && is_uuid($_POST['voicemail_uuid'])) {
|
||||
@@ -113,7 +114,7 @@
|
||||
}
|
||||
|
||||
//process the data
|
||||
if (count($_POST) > 0 && empty($_POST["persistformvar"])) {
|
||||
if (!empty($_POST) && empty($_POST["persistformvar"])) {
|
||||
|
||||
$msg = '';
|
||||
if ($action == "update") {
|
||||
@@ -146,7 +147,7 @@
|
||||
}
|
||||
|
||||
//add or update the database
|
||||
if ($_POST["persistformvar"] != "true") {
|
||||
if (empty($_POST["persistformvar"])) {
|
||||
|
||||
//get a new voicemail_uuid
|
||||
if ($action == "add" && permission_exists('voicemail_add')) {
|
||||
@@ -361,7 +362,7 @@
|
||||
unset($sql, $parameters);
|
||||
|
||||
$show_option_delete = false;
|
||||
if (is_array($voicemail_options) && @sizeof($voicemail_options) != 0) {
|
||||
if (!empty($voicemail_options)) {
|
||||
foreach ($voicemail_options as $x => $field) {
|
||||
$voicemail_option_param = $field['voicemail_option_param'];
|
||||
if (empty(trim($voicemail_option_param))) {
|
||||
@@ -416,7 +417,7 @@
|
||||
}
|
||||
$sql .= "order by v.voicemail_id asc";
|
||||
$parameters['domain_uuid'] = $_SESSION['domain_uuid'];
|
||||
if (is_uuid($voicemail_uuid ?? '')) {
|
||||
if (!empty($voicemail_uuid) && is_uuid($voicemail_uuid)) {
|
||||
$parameters['voicemail_uuid'] = $voicemail_uuid;
|
||||
}
|
||||
$database = new database;
|
||||
|
||||
Reference in New Issue
Block a user