From ebcc6c62f20881f7a6bdc53784a223c70d568c90 Mon Sep 17 00:00:00 2001 From: Perfectionist Date: Sun, 2 Nov 2014 19:23:53 -0600 Subject: [PATCH] Fix Status->All status variables to display correct suffix and formatting. Broken by f9cd1a1a227d193dc8a70decb8e59607deb3e165 Signed-off-by: Daniel Rix --- libraries/server_status_variables.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/server_status_variables.lib.php b/libraries/server_status_variables.lib.php index 0bf172dadd..98ee527e57 100644 --- a/libraries/server_status_variables.lib.php +++ b/libraries/server_status_variables.lib.php @@ -253,7 +253,7 @@ function PMA_getHtmlForRenderVariables($ServerStatusData, $alerts, $strShowStatu $retval .= ''; } } - if (substr($name, -1)) { + if (substr($name, -1) === '%') { $retval .= htmlspecialchars(PMA_Util::formatNumber($value, 0, 2)) . ' %'; } elseif (strpos($name, 'Uptime') !== false) { $retval .= htmlspecialchars(