Browse Source

Dashboard - Icon: Mitigate PHP 8.x warning.

fusionate 1 year ago
parent
commit
a23d3fec4c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/dashboard/resources/dashboard/icon.php

+ 1 - 1
core/dashboard/resources/dashboard/icon.php

@@ -16,7 +16,7 @@
 	echo "	<a href='".$dashboard_url."'><span class='hud_stat'><i class=\"fas ".$dashboard_icon."\" style=\"font-size: 0.8em;\"></i></span></a>\n";
 	echo "	<a href='".$dashboard_url."'><span class='hud_stat'><i class=\"fas ".$dashboard_icon."\" style=\"font-size: 0.8em;\"></i></span></a>\n";
 	echo "</div>\n";
 	echo "</div>\n";
 
 
-	if ($dashboard_detail_state != "disabled") {
+	if (empty($dashboard_detail_state) || $dashboard_detail_state != "disabled") {
 		echo "<div class='hud_details hud_box' id='hud_icon_details'>";
 		echo "<div class='hud_details hud_box' id='hud_icon_details'>";
 		echo "<table class='tr_hover' width='100%' cellpadding='0' cellspacing='0' border='0'>\n";
 		echo "<table class='tr_hover' width='100%' cellpadding='0' cellspacing='0' border='0'>\n";
 		echo "<tr>\n";
 		echo "<tr>\n";