summaryrefslogtreecommitdiff
path: root/includes/module.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/module.inc')
-rw-r--r--includes/module.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/module.inc b/includes/module.inc
index 6bbeb2a41..21641eae8 100644
--- a/includes/module.inc
+++ b/includes/module.inc
@@ -143,7 +143,7 @@ function module_rebuild_cache() {
*/
function _module_build_dependents($files) {
foreach ($files as $filename => $file) {
- if (is_array($file->info['dependencies'])) {
+ if (isset($file->info['dependencies']) && is_array($file->info['dependencies'])) {
foreach ($file->info['dependencies'] as $dependency) {
if (!empty($files[$dependency]) && is_array($files[$dependency]->info)) {
if (!isset($files[$dependency]->info['dependents'])) {