diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-01-18 15:45:59 +0100 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-01-18 15:45:59 +0100 |
commit | 8f00021b55a87ec64a50d15f765160bd4e908c6b (patch) | |
tree | 570267ba709345313c6dd71167dc53b0a969000b /system/database | |
parent | f8f05703f61689b4d0b432f12e36a27f15778458 (diff) |
reset where_in array after a call (bug# 3259)
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;
}
|