mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
PHP 8.1 end function requires array
This commit is contained in:
@@ -191,9 +191,9 @@ if (!class_exists('xml_cdr')) {
|
||||
$this->fields[] = "hangup_cause";
|
||||
$this->fields[] = "hangup_cause_q850";
|
||||
$this->fields[] = "sip_hangup_disposition";
|
||||
if (is_array($_SESSION['cdr']['field'])) {
|
||||
if (!empty($_SESSION['cdr']['field'])) {
|
||||
foreach ($_SESSION['cdr']['field'] as $field) {
|
||||
$field_name = end($field);
|
||||
$field_name = end(explode(',', $field));
|
||||
$this->fields[] = $field_name;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user