diff options
author | jakefeasel <jfeasel@gmail.com> | 2013-09-14 17:44:38 -0700 |
---|---|---|
committer | jakefeasel <jfeasel@gmail.com> | 2013-09-14 17:44:38 -0700 |
commit | 443de1a8f19f4842fc37668c839fe95b8eeebc3d (patch) | |
tree | fe6adf29768fff32e4ed448452a27060ec21b373 | |
parent | 30f6bcce893bc74b115d6029407d403c4b7295e2 (diff) | |
download | sqlfiddle-443de1a8f19f4842fc37668c839fe95b8eeebc3d.zip sqlfiddle-443de1a8f19f4842fc37668c839fe95b8eeebc3d.tar.gz sqlfiddle-443de1a8f19f4842fc37668c839fe95b8eeebc3d.tar.bz2 |
Bug with conditional from last commit
-rw-r--r-- | src/main/webapp/controllers/Tasks.cfc | 2 |
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); |