Skip to content

Commit 580eba5

Browse files
committed
fix(issue): SQL warning if groups of the user contain an empty ID
empty string unexpected
1 parent f6d63ea commit 580eba5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hook.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ function plugin_formcreator_addDefaultWhere($itemtype) {
205205
$groupList[] = $group['id'];
206206
}
207207
if (count($groupList) > 0) {
208+
$groupList = array_filter($groupList);
208209
$groupList = implode("', '", $groupList);
209210
// Search option ID 16 is either from Formcreator, either from AdvForms
210211
$complexJoinId = Search::computeComplexJoinID($issueSearchOptions[16]['joinparams']);

0 commit comments

Comments
 (0)