diff --git a/server_status.php b/server_status.php index c67c63a75..3b44a4ade 100644 --- a/server_status.php +++ b/server_status.php @@ -653,8 +653,11 @@ $used_queries = $sections['com']['vars']; // reverse sort by value to show most used statements first arsort($used_queries); // remove all zero values from the end -while (end($used_queries) == 0) { - array_pop($used_queries); +// variable empty for Drizzle +if ($used_queries) { + while (end($used_queries) == 0) { + array_pop($used_queries); + } } // number of tables to split values into @@ -713,6 +716,7 @@ foreach ($used_queries as $name => $value) {
+
$value) { } ?>
+