Skip to content
Snippets Groups Projects
Commit eab7397a authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1067998 by eporama, amanaplan, ceefour: Fixed Warning: Invalid argument...

Issue #1067998 by eporama, amanaplan, ceefour: Fixed Warning: Invalid argument supplied for foreach() in filter_list_format() (line 675 of /.../modules/filter/filter.module).
parent d013cad6
No related branches found
No related tags found
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
......@@ -671,7 +671,8 @@ function filter_list_format($format_id) {
if (!isset($filters[$format_id])) {
$format_filters = array();
foreach ($filters['all'][$format_id] as $name => $filter) {
$filter_map = isset($filters['all'][$format_id]) ? $filters['all'][$format_id] : array();
foreach ($filter_map as $name => $filter) {
if (isset($filter_info[$name])) {
$filter->title = $filter_info[$name]['title'];
// Unpack stored filter settings.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment