summaryrefslogtreecommitdiffstats
path: root/application/controllers/tools.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/tools.php')
-rw-r--r--application/controllers/tools.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/application/controllers/tools.php b/application/controllers/tools.php
index f04f86224..e36b09b79 100644
--- a/application/controllers/tools.php
+++ b/application/controllers/tools.php
@@ -55,6 +55,10 @@ class Tools extends MY_Controller {
}
}
+ if (empty($tables_to_drop)) {
+ return;
+ }
+
$this->db->query('SET FOREIGN_KEY_CHECKS = 0');
$this->db->query('DROP TABLE '.implode(", ", $tables_to_drop));
$this->db->query('SET FOREIGN_KEY_CHECKS = 1');