commit | a1170aff602317d9b6f2d5c1d5cc60d3dc82ee58 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Thu Jul 02 11:46:56 2015 +0300 |
committer | Andrey Andreev <narf@devilix.net> | Thu Jul 02 11:46:56 2015 +0300 |
tree | acd33c8b0330ad59f14a5d960340265a79834911 | |
parent | 441d3536b79bc53c80dd710a803ac5d0baba6c18 [diff] [blame] |
Fix QB delete() for multiple tables with where() Reported via the forums: http://forum.codeigniter.com/thread-61774.html
diff --git a/system/database/DB_query_builder.php b/system/database/DB_query_builder.php index 859f9f5..a8b5b35 100644 --- a/system/database/DB_query_builder.php +++ b/system/database/DB_query_builder.php
@@ -2092,10 +2092,13 @@ } elseif (is_array($table)) { + empty($where) && $reset_data = FALSE; + foreach ($table as $single_table) { $this->delete($single_table, $where, $limit, $reset_data); } + return; } else