Commit 54a754e4 authored by Dries's avatar Dries

- Patch #101379 by ChrisKennedy, neclimdul et al: modules missing .info files...

- Patch #101379 by ChrisKennedy, neclimdul et al: modules missing .info files wrongly adding empty entries to module page.
parent f28aa5f3
......@@ -193,12 +193,13 @@ function _module_parse_info_file($filename) {
if (file_exists($filename)) {
$info = parse_ini_file($filename);
}
if (isset($info['dependencies'])) {
$info['dependencies'] = explode(" ", $info['dependencies']);
}
else {
$info['dependencies'] = NULL;
if (isset($info['dependencies'])) {
$info['dependencies'] = explode(" ", $info['dependencies']);
}
else {
$info['dependencies'] = NULL;
}
}
return $info;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment