From ee7740fc5d194cc6d4e0ace202422e49db6809fa Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 29 Jan 2019 20:06:36 +0100 Subject: [PATCH] Update SystemCheckPage.class.php --- wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php b/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php index 820e812726..0ed3eb3e3d 100644 --- a/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php @@ -199,7 +199,7 @@ class SystemCheckPage extends AbstractPage { // Memory is not limited through PHP. if ($memoryLimit == -1) { - $this->results['php']['memoryLimit']['value'] = '∞'; + $this->results['php']['memoryLimit']['value'] = "\u{221E}"; $this->results['php']['memoryLimit']['result'] = true; } else { @@ -215,7 +215,7 @@ class SystemCheckPage extends AbstractPage { if (preg_match('~^(\d+)([KMG])$~', $memoryLimit, $matches)) { switch ($matches[2]) { case 'K': - $memoryLimit = $matches[1] * 1024; + $memoryLimit = $matches[1] / 1024; $this->results['php']['memoryLimit']['value'] = $memoryLimit . 'M'; $this->results['php']['memoryLimit']['result'] = ($memoryLimit >= $this->phpMemoryLimit); -- 2.20.1