summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-01-18 15:45:59 +0100
committerDerek Allard <derek.allard@ellislab.com>2008-01-18 15:45:59 +0100
commit8f00021b55a87ec64a50d15f765160bd4e908c6b (patch)
tree570267ba709345313c6dd71167dc53b0a969000b
parentf8f05703f61689b4d0b432f12e36a27f15778458 (diff)
reset where_in array after a call (bug# 3259)
-rw-r--r--system/database/DB_active_rec.php3
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;
}