mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Voicemail [Class]: Adjust messages() method to avoid count() error if voicemail_messages() method return false.
This commit is contained in:
@@ -186,7 +186,7 @@
|
||||
$this->voicemail_uuid = $row['voicemail_uuid'];
|
||||
$this->voicemail_id = $row['voicemail_id'];
|
||||
$result = $this->voicemail_messages();
|
||||
$voicemail_count = count($result);
|
||||
$voicemail_count = !empty($result) && is_array($result) ? count($result) : 0;
|
||||
$row['messages'] = $result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user