diff options
Diffstat (limited to 'system/database')
-rw-r--r-- | system/database/DB_active_rec.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/system/database/DB_active_rec.php b/system/database/DB_active_rec.php index c899b7f4f..c986ddec2 100644 --- a/system/database/DB_active_rec.php +++ b/system/database/DB_active_rec.php @@ -490,6 +490,8 @@ class CI_DB_active_record extends CI_DB_driver { $this->ar_where[] = $prefix . $this->_protect_identifiers($key) . $not . " IN (" . implode(", ", $this->ar_wherein) . ") ";
+ // reset the array for multiple calls
+ $this->ar_wherein = array();
return $this;
}
@@ -750,7 +752,6 @@ class CI_DB_active_record extends CI_DB_driver { }
$this->ar_orderby[] = $this->_protect_identifiers($orderby, TRUE).$direction;
-
return $this;
}
|