Dashboard - Voicemails: Updates for PHP 8.1

This commit is contained in:
fusionate 2023-05-10 22:27:19 +00:00
parent 198ee84d9a
commit 8f50a96d51
No known key found for this signature in database
2 changed files with 5 additions and 4 deletions

View File

@ -152,6 +152,7 @@
}
else {
$x = 0;
$sql_where = '';
foreach($voicemail_ids as $voicemail_id) {
$sql_where_or[] = "voicemail_id = :voicemail_id_".$x;
$parameters['voicemail_id_'.$x] = $voicemail_id;

View File

@ -34,8 +34,8 @@
$vm = new voicemail;
$vm->db = $db;
$vm->domain_uuid = $_SESSION['domain_uuid'];
$vm->order_by = $order_by;
$vm->order = $order;
$vm->order_by = $order_by ?? null;
$vm->order = $order ?? null;
$voicemails = $vm->messages();
//sum total and new
@ -134,7 +134,7 @@
echo "<br />".$text['label-no_voicemail_assigned'];
}
echo "</div>";
$n++;
//$n++;
echo "<span class='hud_expander' onclick=\"$('#hud_voicemail_details').slideToggle('fast');\"><span class='fas fa-ellipsis-h'></span></span>";
echo "</div>\n";