Extension - Edit: Resolve PHP warning.

This commit is contained in:
fusionate
2025-07-25 15:31:38 -06:00
parent bb7b4ce08a
commit 1e1ca9cc73

View File

@@ -47,7 +47,7 @@
$language = new text;
$text = $language->get();
//return the first item if data type = array, returns value if data type = text
//return the first item if data type = array, returns value if data type = text
function get_first_item($value) {
return is_array($value) ? $value[0] : $value;
}
@@ -717,7 +717,7 @@
$message = $text['message-duplicate'].(if_group("superadmin") && $_SESSION["domain_name"] != $device_domain_name ? ": ".$device_domain_name : null);
message::add($message,'negative');
}
//increment
$j++;
}
@@ -1113,7 +1113,7 @@
$token = $object->create($_SERVER['PHP_SELF']);
//set the back button
$_SESSION['call_forward_back'] = $_SERVER['PHP_SELF'] . "?id=$extension_uuid";
$_SESSION['call_forward_back'] = $_SERVER['PHP_SELF'].(!empty($extension_uuid) ? '?id='.$extension_uuid : null);
//begin the page content
require_once "resources/header.php";