mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Extension - Edit: Resolve PHP warning.
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user