diff --git a/hook.php b/hook.php index cbbb5db4b..3b246b4b6 100644 --- a/hook.php +++ b/hook.php @@ -205,6 +205,7 @@ function plugin_formcreator_addDefaultWhere($itemtype) { $groupList[] = $group['id']; } if (count($groupList) > 0) { + $groupList = array_filter($groupList); $groupList = implode("', '", $groupList); // Search option ID 16 is either from Formcreator, either from AdvForms $complexJoinId = Search::computeComplexJoinID($issueSearchOptions[16]['joinparams']);