diff --git a/app/voicemails/resources/dashboard/voicemails.php b/app/voicemails/resources/dashboard/voicemails.php index efa96fd972..fc85dcac20 100644 --- a/app/voicemails/resources/dashboard/voicemails.php +++ b/app/voicemails/resources/dashboard/voicemails.php @@ -36,7 +36,7 @@ //sum total and new $messages['total'] = 0; $messages['new'] = 0; - if (sizeof($voicemails) > 0) { + if (!empty($voicemails) && sizeof($voicemails) > 0) { foreach($voicemails as $field) { $messages[$field['voicemail_uuid']]['ext'] = $field['voicemail_id']; $messages[$field['voicemail_uuid']]['total'] = 0; @@ -107,7 +107,7 @@ if ($dashboard_details_state != 'disabled') { echo "
"; - if (sizeof($voicemails) > 0) { + if (!empty($voicemails) && sizeof($voicemails) > 0) { echo ""; echo ""; echo " ";
".$text['label-voicemail']."