Commit f696a0ca authored by Dries's avatar Dries
Browse files

- Patch #490574 by dww: avoid notices when you don't have files declared in your .info file.

parent 0a2352c8
......@@ -278,9 +278,11 @@ function simpletest_registry_files_alter(&$files, $modules) {
// already include any test files they provide.
if (!$module->status) {
$dir = $module->dir;
foreach ($module->info['files'] as $file) {
if (substr($file, -5) == '.test') {
$files["$dir/$file"] = array('module' => $module->name, 'weight' => $module->weight);
if (!empty($module->info['files'])) {
foreach ($module->info['files'] as $file) {
if (substr($file, -5) == '.test') {
$files["$dir/$file"] = array('module' => $module->name, 'weight' => $module->weight);
}
}
}
}
......
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