summaryrefslogtreecommitdiff
path: root/core/controllers/scaffold.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-02-08 02:21:28 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-02-08 02:21:28 +0000
commit1fc2307faba7f280e9251de54504122a1dcb187e (patch)
tree3354dbca31ed92b50f0894deefe5154a0d0c7484 /core/controllers/scaffold.php
parent7ebbe189d4a6955532fb17f4cb9466115279ca35 (diff)
rollback r20001-r19998, r19995. This may require a reinstall
Diffstat (limited to 'core/controllers/scaffold.php')
-rw-r--r--core/controllers/scaffold.php11
1 files changed, 3 insertions, 8 deletions
diff --git a/core/controllers/scaffold.php b/core/controllers/scaffold.php
index 395e032d..8266ba8f 100644
--- a/core/controllers/scaffold.php
+++ b/core/controllers/scaffold.php
@@ -112,11 +112,8 @@ class Scaffold_Controller extends Template_Controller {
// Since we're in a state of flux, it's possible that other stuff went wrong with the
// uninstall, so back off and nuke it from orbit. It's the only way to be sure.
$db = Database::instance();
- $tables = $db->list_tables();
- if (!empty($tables)) {
- foreach ($db->list_tables() as $table) {
- $db->query("DROP TABLE `$table`");
- }
+ foreach ($db->list_tables() as $table) {
+ $db->query("DROP TABLE `$table`");
}
set_error_handler($old_handler);
} else {
@@ -426,9 +423,7 @@ class Scaffold_Controller extends Template_Controller {
function _create_directories() {
foreach (array("logs", "uploads") as $dir) {
- if (!file_exists(VARPATH . "$dir")) {
- @mkdir(VARPATH . "$dir");
- }
+ @mkdir(VARPATH . "$dir");
}
}