Skip to content

Commit

Permalink
Update Database.php
Browse files Browse the repository at this point in the history
  • Loading branch information
anzawi committed Apr 30, 2016
1 parent 2c7fb88 commit d428215
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ public function in($field, $values = [])
{
if(count($values))
{
$this->_query .= " $field IN (" . implode(",", $values) . ")";
$this->_query .= " $this->_where $field IN (" . implode(",", $values) . ")";
$this->_where = "AND";
}
}
Expand All @@ -424,7 +424,7 @@ public function notIn($field, $values = [])
{
if(count($values))
{
$this->_query .= " $field NOT IN (" . implode(",", $values) . ")";
$this->_query .= " $this->_where $field NOT IN (" . implode(",", $values) . ")";
$this->_where = "AND";
}
}
Expand Down

0 comments on commit d428215

Please sign in to comment.