MDL-24848 fixed broken extra memory limit
authorPetr Skoda <skodak@moodle.org>
Tue, 26 Oct 2010 08:02:51 +0000 (08:02 +0000)
committerPetr Skoda <skodak@moodle.org>
Tue, 26 Oct 2010 08:02:51 +0000 (08:02 +0000)
lib/setuplib.php

index ead6e86..ae94128 100644 (file)
@@ -814,7 +814,7 @@ function raise_memory_limit($newlimit) {
         } else {
             $newlimit = get_real_size('256M');
         }
-        if (empty($CFG->extramemorylimit)) {
+        if (!empty($CFG->extramemorylimit)) {
             $extra = get_real_size($CFG->extramemorylimit);
             if ($extra > $newlimit) {
                 $newlimit = $extra;