Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The function module_invoke could return empty string which cause an error:
Warning: Invalid argument supplied for foreach() in _felix_add_block_list_page() (line 413 of /var/www/html/sites/all/modules/contrib/felix/felix.pages.inc).
Proposed solution:
Instead of
$info = module_invoke($module, 'block_info');
foreach ($info as $delta => $block) {
Use:
foreach ((array) $info = module_invoke($module, 'block_info')as $delta => $block) {
Comment | File | Size | Author |
---|---|---|---|
#4 | felix-invalid-foreach-2811151-1.patch | 568 bytes | ozin |
Comments
Comment #2
ozinComment #3
ozinComment #4
ozin