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
e7faaccb16
commit
91c37eaaeb
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue