Update SystemCheckPage.class.php
authorAlexander Ebert <ebert@woltlab.com>
Tue, 29 Jan 2019 19:06:36 +0000 (20:06 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 29 Jan 2019 19:06:36 +0000 (20:06 +0100)
wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php

index 820e812726b5d7a49924129b90b3b8ee6bcf2052..0ed3eb3e3dad41add6b6f998a1ba31606c02096b 100644 (file)
@@ -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);