summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/webapp/controllers/Tasks.cfc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/webapp/controllers/Tasks.cfc b/src/main/webapp/controllers/Tasks.cfc
index 392b8c4..8eff7da 100644
--- a/src/main/webapp/controllers/Tasks.cfc
+++ b/src/main/webapp/controllers/Tasks.cfc
@@ -36,7 +36,7 @@
loc.db_type_id = mid(loc.dsnArray[loc.i], loc.dsnMatch.pos[2], loc.dsnMatch.len[2]);
loc.short_code = mid(loc.dsnArray[loc.i], loc.dsnMatch.pos[3], loc.dsnMatch.len[3]);
loc.active_database = model("Schema_Def").findOne(where="current_host_id IS NOT NULL AND db_type_id = #loc.db_type_id# AND short_code = '#loc.short_code#'", returnAs="object", select="db_type_id,short_code,current_host_id,id");
- if (loc.active_database IS false) {
+ if (IsObject(loc.active_database) IS false) {
loc.host = model("Host");
loc.host.db_type_id = loc.db_type_id;
loc.host.dropDSN(loc.short_code);