diff options
author | Andrey Andreev <narf@devilix.net> | 2015-07-02 10:46:56 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2015-07-02 10:46:56 +0200 |
commit | a1170aff602317d9b6f2d5c1d5cc60d3dc82ee58 (patch) | |
tree | acd33c8b0330ad59f14a5d960340265a79834911 /system/database/DB_query_builder.php | |
parent | 441d3536b79bc53c80dd710a803ac5d0baba6c18 (diff) |
Fix QB delete() for multiple tables with where()
Reported via the forums: http://forum.codeigniter.com/thread-61774.html
Diffstat (limited to 'system/database/DB_query_builder.php')
-rw-r--r-- | system/database/DB_query_builder.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/system/database/DB_query_builder.php b/system/database/DB_query_builder.php index 859f9f564..a8b5b3579 100644 --- a/system/database/DB_query_builder.php +++ b/system/database/DB_query_builder.php @@ -2092,10 +2092,13 @@ abstract class CI_DB_query_builder extends CI_DB_driver { } elseif (is_array($table)) { + empty($where) && $reset_data = FALSE; + foreach ($table as $single_table) { $this->delete($single_table, $where, $limit, $reset_data); } + return; } else |