Merge branch 'MDL-26007_20_wip_enverror' of git://github.com/skodak/moodle
authorSam Hemelryk <sam@moodle.com>
Tue, 18 Jan 2011 07:34:43 +0000 (15:34 +0800)
committerSam Hemelryk <sam@moodle.com>
Tue, 18 Jan 2011 07:34:43 +0000 (15:34 +0800)
lib/environmentlib.php

index fde432c..f530b04 100644 (file)
@@ -716,7 +716,8 @@ function environment_check_php_settings($version, $env_select) {
         $result = new environment_results('php_setting');
         $result->setStatus(false);
         $result->setErrorCode(NO_VERSION_DATA_FOUND);
-        return $result;
+        $results[] = $result;
+        return $results;
     }
 
 /// Extract the php_setting part