From 52299e0658c4f21fbcfdae60c5f26b587d2af4d3 Mon Sep 17 00:00:00 2001 From: Piotr Przybylski Date: Tue, 5 Apr 2011 16:02:46 +0200 Subject: [PATCH] Drizzle-compatible Status tab --- server_status.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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) { } ?>
+