mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-21 18:36:31 +00:00
Voicemail: Show assigned extension mailboxes if voicemail_domain permission not assigned.
This commit is contained in:
@@ -178,7 +178,7 @@
|
||||
$voicemails = $vm->messages();
|
||||
|
||||
//count messages
|
||||
$new_messages = 0;
|
||||
$new_messages = $num_rows = 0;
|
||||
if (is_array($voicemails) && @sizeof($voicemails) != 0) {
|
||||
foreach ($voicemails as $voicemail) {
|
||||
if (is_array($voicemail['messages'])) {
|
||||
|
||||
@@ -79,6 +79,16 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
$voicemail = new voicemail;
|
||||
$rows = $voicemail->voicemails();
|
||||
if (is_array($rows) && @sizeof($rows) != 0) {
|
||||
foreach ($rows as $row) {
|
||||
$voicemail_uuids[]['voicemail_uuid'] = $row['voicemail_uuid'];
|
||||
}
|
||||
}
|
||||
unset($voicemail, $rows, $row);
|
||||
}
|
||||
|
||||
//get order and order by
|
||||
$order_by = $_GET["order_by"];
|
||||
|
||||
Reference in New Issue
Block a user