Fix delete() with multiple tables and an erroneous variable
diff --git a/system/database/DB_query_builder.php b/system/database/DB_query_builder.php
index 9c6cb7e..ab04e4d 100644
--- a/system/database/DB_query_builder.php
+++ b/system/database/DB_query_builder.php
@@ -1832,10 +1832,8 @@
{
foreach ($table as $single_table)
{
- $this->delete($single_table, $where, $limit, FALSE);
+ $this->delete($single_table, $where, $limit, $reset_data);
}
-
- $this->_reset_write();
return;
}
else
@@ -2109,7 +2107,7 @@
{
$this->qb_groupby[$i] = ($this->qb_groupby[$i]['escape'] === FALSE)
? $this->qb_groupby[$i]['field']
- : $this->protect_identifiers($qb_groupby[$i]['field']);
+ : $this->protect_identifiers($this->qb_groupby[$i]['field']);
}
$sql .= implode(', ', $this->qb_groupby);