diff --git a/app/voicemails/voicemails.php b/app/voicemails/voicemails.php index 8844705009..877a33d794 100644 --- a/app/voicemails/voicemails.php +++ b/app/voicemails/voicemails.php @@ -250,9 +250,6 @@ if (permission_exists('voicemail_message_view') || permission_exists('voicemail_greeting_view')) { echo "".$text['label-tools']."\n"; } - if (permission_exists('voicemail_message_view') && permission_exists('voicemail_greeting_view')) { - echo "\n"; - } echo th_order_by('voicemail_enabled', $text['label-voicemail_enabled'], $order_by, $order, null, "class='center'"); echo th_order_by('voicemail_description', $text['label-voicemail_description'], $order_by, $order, null, "class='hide-sm-dn'"); if (permission_exists('voicemail_edit') && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') { @@ -297,17 +294,15 @@ if (is_array($_SESSION['voicemail']['transcribe_enabled']) && $_SESSION['voicemail']['transcribe_enabled']['boolean'] == 'true') { echo " ".ucwords(escape($row['voicemail_transcription_enabled']))." \n"; } - if (permission_exists('voicemail_message_view')) { - echo " \n"; - $tmp_voicemail_string = (array_key_exists($row['voicemail_uuid'], $voicemails_count)) ? " (" . $voicemails_count[$row['voicemail_uuid']] . ")" : " (0)"; - echo " ".$text['label-messages'].$tmp_voicemail_string."\n"; - echo " \n"; - } + echo " \n"; if (permission_exists('voicemail_greeting_view')) { - echo " \n"; - echo " ".$text['label-greetings']."\n"; - echo " \n"; + echo " ".$text['label-greetings']."\n"; } + if (permission_exists('voicemail_message_view')) { + $tmp_voicemail_string = (array_key_exists($row['voicemail_uuid'], $voicemails_count)) ? " (" . $voicemails_count[$row['voicemail_uuid']] . ")" : " (0)"; + echo " ".$text['label-messages'].$tmp_voicemail_string."\n"; + } + echo " \n"; if (permission_exists('voicemail_edit')) { echo " \n"; echo button::create(['type'=>'submit','class'=>'link','label'=>$text['label-'.$row['voicemail_enabled']],'title'=>$text['button-toggle'],'onclick'=>"list_self_check('checkbox_".$x."'); list_action_set('toggle'); list_form_submit('form_list')"]);