Skip to content
Snippets Groups Projects
Commit 64162b74 authored by Neil Drumm's avatar Neil Drumm :wave:
Browse files

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

parent aeaa07c9
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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'])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment