Commit 64162b74 authored by drumm's avatar drumm

#88843 by lyricnz. Properly check if dependencies are set.

parent aeaa07c9
...@@ -143,7 +143,7 @@ function module_rebuild_cache() { ...@@ -143,7 +143,7 @@ function module_rebuild_cache() {
*/ */
function _module_build_dependents($files) { function _module_build_dependents($files) {
foreach ($files as $filename => $file) { 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) { foreach ($file->info['dependencies'] as $dependency) {
if (!empty($files[$dependency]) && is_array($files[$dependency]->info)) { if (!empty($files[$dependency]) && is_array($files[$dependency]->info)) {
if (!isset($files[$dependency]->info['dependents'])) { if (!isset($files[$dependency]->info['dependents'])) {
......
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