Skip to content

Commit 2c7fb88

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: Database.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ public function in($field, $values = [])
410410
if(count($values))
411411
{
412412
$this->_query .= " $field IN (" . implode(",", $values) . ")";
413+
$this->_where = "AND";
413414
}
414415
}
415416

@@ -424,6 +425,7 @@ public function notIn($field, $values = [])
424425
if(count($values))
425426
{
426427
$this->_query .= " $field NOT IN (" . implode(",", $values) . ")";
428+
$this->_where = "AND";
427429
}
428430
}
429431

@@ -697,4 +699,4 @@ public function showMeSchema()
697699
{
698700
return $this->_schema;
699701
}
700-
}
702+
}

0 commit comments

Comments
 (0)