Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/server_status_variables.lib.php')
-rw-r--r--libraries/server_status_variables.lib.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/libraries/server_status_variables.lib.php b/libraries/server_status_variables.lib.php
index 860ecd91ec..0bf172dadd 100644
--- a/libraries/server_status_variables.lib.php
+++ b/libraries/server_status_variables.lib.php
@@ -223,9 +223,6 @@ function PMA_getHtmlForRenderVariables($ServerStatusData, $alerts, $strShowStatu
$retval .= '</thead>';
$retval .= '<tbody>';
- /** @var PMA_String $pmaString */
- $pmaString = $GLOBALS['PMA_String'];
-
$odd_row = false;
foreach ($ServerStatusData->status as $name => $value) {
$odd_row = !$odd_row;
@@ -239,7 +236,7 @@ function PMA_getHtmlForRenderVariables($ServerStatusData, $alerts, $strShowStatu
$retval .= htmlspecialchars(str_replace('_', ' ', $name));
// Fields containing % are calculated,
// they can not be described in MySQL documentation
- if ($pmaString->strpos($name, '%') === false) {
+ if (/*overload*/mb_strpos($name, '%') === false) {
$retval .= PMA_Util::showMySQLDocu(
'server-status-variables',
false,
@@ -256,9 +253,9 @@ function PMA_getHtmlForRenderVariables($ServerStatusData, $alerts, $strShowStatu
$retval .= '<span class="allfine">';
}
}
- if ('%' === $pmaString->substr($name, -1, 1)) {
+ if (substr($name, -1)) {
$retval .= htmlspecialchars(PMA_Util::formatNumber($value, 0, 2)) . ' %';
- } elseif ($pmaString->strpos($name, 'Uptime') !== false) {
+ } elseif (strpos($name, 'Uptime') !== false) {
$retval .= htmlspecialchars(
PMA_Util::timespanFormat($value)
);