diff --git a/hook.php b/hook.php index 4f83b9abf..08a56cec4 100644 --- a/hook.php +++ b/hook.php @@ -265,6 +265,9 @@ function plugin_formcreator_addDefaultWhere($itemtype) { $groupIDs = []; foreach ($groups as $group) { + if ($group['id'] === null) { + continue; + } $groupIDs[] = $group['id']; } $groupIDs = implode(',', $groupIDs);