Commit 0414b0cd authored by Patrick Müller's avatar Patrick Müller

fix: SetUserGroups console tool -> build correct WHERE statement

parent 4f4e7e0d
......@@ -94,7 +94,9 @@ class SetUserGroups extends QUI\System\Console\Tool
$where[] = "(".implode(" OR ", $whereOR).")";
}
$sql .= " WHERE ".implode(" AND ", $where);
if (!empty($where)) {
$sql .= " WHERE ".implode(" AND ", $where);
}
$result = QUI::getDataBase()->fetchSQL($sql);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment