Skip to content

Commit

Permalink
Fix recently introduced PHP notice in categories helper
Browse files Browse the repository at this point in the history
  • Loading branch information
ggppdk committed Feb 11, 2022
1 parent b75eb3b commit a17052b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/classes/flexicontent.categories.php
Expand Up @@ -393,7 +393,7 @@ public static function buildcatselect($list, $name, $selected, $top,
* A reverse index of already used categories, so that we do not skip them
* when skipping categories based on their language and / or their state
*/
$selectedcats_indexed = array_flip(!is_array($selected) ? array($selected) : $selected);
$selectedcats_indexed = array_flip(!is_array($selected) ? array($selected === NULL ? '' : $selected) : $selected);


// ***
Expand Down

0 comments on commit a17052b

Please sign in to comment.