mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Dashboard - New Messages: Mitigate PHP 8.x+ warnings.
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
echo "<div class='hud_container' ".($dashboard_details_state == "disabled" ?: "onclick=\"$('#hud_voicemail_details').slideToggle('fast'); toggle_grid_row_end('".$dashboard_name."')\"").">\n";
|
||||
echo " <span class='hud_title' onclick=\"document.location.href='".PROJECT_PATH."/app/voicemails/voicemail_messages.php'\">".$text['label-new_messages']."</span>";
|
||||
|
||||
if ($row['dashboard_chart_type'] == "doughnut") {
|
||||
if (isset($row['dashboard_chart_type']) && $row['dashboard_chart_type'] == "doughnut") {
|
||||
//add doughnut chart
|
||||
?>
|
||||
<div class='hud_chart'><canvas id='new_messages_chart'></canvas></div>
|
||||
@@ -100,7 +100,7 @@
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
if ($row['dashboard_chart_type'] == "none" || !isset($row['dashboard_chart_type'])) {
|
||||
if (!isset($row['dashboard_chart_type']) || $row['dashboard_chart_type'] == "none") {
|
||||
echo " <span class='hud_stat'>".$messages['new']."</span>";
|
||||
}
|
||||
echo "</div>\n";
|
||||
|
||||
Reference in New Issue
Block a user