From 8f00021b55a87ec64a50d15f765160bd4e908c6b Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Fri, 18 Jan 2008 14:45:59 +0000 Subject: reset where_in array after a call (bug# 3259) --- system/database/DB_active_rec.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'system') 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; } -- cgit v1.2.3-24-g4f1b