Voicemail: Show assigned extension mailboxes if voicemail_domain permission not assigned.

This commit is contained in:
Nate
2020-10-12 14:55:07 -06:00
parent a770fd878c
commit b8acae0afb
2 changed files with 11 additions and 1 deletions

View File

@@ -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'])) {

View File

@@ -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"];