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";
|
||||||
$this->fields[] = "hangup_cause_q850";
|
$this->fields[] = "hangup_cause_q850";
|
||||||
$this->fields[] = "sip_hangup_disposition";
|
$this->fields[] = "sip_hangup_disposition";
|
||||||
if (is_array($_SESSION['cdr']['field'])) {
|
if (!empty($_SESSION['cdr']['field'])) {
|
||||||
foreach ($_SESSION['cdr']['field'] as $field) {
|
foreach ($_SESSION['cdr']['field'] as $field) {
|
||||||
$field_name = end($field);
|
$field_name = end(explode(',', $field));
|
||||||
$this->fields[] = $field_name;
|
$this->fields[] = $field_name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user