MDL-9796 fixed error array when environment file broken
This commit is contained in:
@@ -471,7 +471,7 @@ function environment_check_php_extensions($version) {
|
||||
$result = new environment_results('php_extension');
|
||||
$result->setStatus(false);
|
||||
$result->setErrorCode(NO_VERSION_DATA_FOUND);
|
||||
return $result;
|
||||
return array($result);
|
||||
}
|
||||
|
||||
/// Extract the php_extension part
|
||||
@@ -480,7 +480,7 @@ function environment_check_php_extensions($version) {
|
||||
$result = new environment_results('php_extension');
|
||||
$result->setStatus(false);
|
||||
$result->setErrorCode(NO_PHP_EXTENSIONS_SECTION_FOUND);
|
||||
return $result;
|
||||
return array($result);
|
||||
}
|
||||
/// Iterate over extensions checking them and creating the needed environment_results
|
||||
foreach($data['#']['PHP_EXTENSIONS']['0']['#']['PHP_EXTENSION'] as $extension) {
|
||||
|
||||
Reference in New Issue
Block a user