Skip to content

Commit

Permalink
fix(issue): SQL warning if groups of the user contain an empty ID
Browse files Browse the repository at this point in the history
empty string unexpected
  • Loading branch information
btry committed Sep 12, 2024
1 parent f6d63ea commit 580eba5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit 580eba5

Please sign in to comment.