mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Prevent a count error
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given
This commit is contained in:
@@ -1499,7 +1499,7 @@
|
||||
unset($x);
|
||||
|
||||
//set the last status to match the call detail record
|
||||
$call_flow_summary[count($call_flow_summary)-1]['destination_status'] = $this->status;
|
||||
$call_flow_summary[count($call_flow_summary ?? [])-1]['destination_status'] = $this->status;
|
||||
|
||||
//return the call flow summary array
|
||||
return $call_flow_summary;
|
||||
|
||||
Reference in New Issue
Block a user