reset where_in array after a call (bug# 3259)
diff --git a/system/database/DB_active_rec.php b/system/database/DB_active_rec.php
index c899b7f..c986dde 100644
--- a/system/database/DB_active_rec.php
+++ b/system/database/DB_active_rec.php
@@ -490,6 +490,8 @@
$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 @@
}
$this->ar_orderby[] = $this->_protect_identifiers($orderby, TRUE).$direction;
-
return $this;
}