summaryrefslogtreecommitdiff
path: root/includes/module.inc
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-11-07 06:13:01 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-11-07 06:13:01 +0000
commit64162b74adce37d976508d5253a01da3acacf9f4 (patch)
tree97c775aa5a7cdd60ae93e8f87cd797fa4f5eab5c /includes/module.inc
parentaeaa07c9f25903925c215c950cc027228907d9f3 (diff)
downloadbrdo-64162b74adce37d976508d5253a01da3acacf9f4.tar.gz
brdo-64162b74adce37d976508d5253a01da3acacf9f4.tar.bz2
#88843 by lyricnz. Properly check if dependencies are set.
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'])) {