PHP 8.1 end function requires array
This commit is contained in:
parent
7f48c0f676
commit
9684541dbe
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue