Skip to content

Commit d428215

Browse files
committed
Update Database.php
1 parent 2c7fb88 commit d428215

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Database.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ public function in($field, $values = [])
409409
{
410410
if(count($values))
411411
{
412-
$this->_query .= " $field IN (" . implode(",", $values) . ")";
412+
$this->_query .= " $this->_where $field IN (" . implode(",", $values) . ")";
413413
$this->_where = "AND";
414414
}
415415
}
@@ -424,7 +424,7 @@ public function notIn($field, $values = [])
424424
{
425425
if(count($values))
426426
{
427-
$this->_query .= " $field NOT IN (" . implode(",", $values) . ")";
427+
$this->_query .= " $this->_where $field NOT IN (" . implode(",", $values) . ")";
428428
$this->_where = "AND";
429429
}
430430
}

0 commit comments

Comments
 (0)