Skip to content

Commit 09b17fc

Browse files
authored
WhereIn() not supporting non array variables 🐛
- When using WhereIn if the variable being passed in is not an array or closure it is simply returned with no user feedback. - However we have logic in place which allows regular values.
1 parent 5093694 commit 09b17fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Database/BaseBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ public function orHavingNotIn(string $key = null, $values = null, bool $escape =
984984
*/
985985
protected function _whereIn(string $key = null, $values = null, bool $not = false, string $type = 'AND ', bool $escape = null, string $clause = 'QBWhere')
986986
{
987-
if ($key === null || $values === null || (! is_array($values) && ! ($values instanceof Closure)))
987+
if ($key === null || $values === null)
988988
{
989989
return $this;
990990
}

0 commit comments

Comments
 (0)