diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-06-04 14:08:24 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-06-04 14:08:24 +0200 |
commit | e4c30195c5f6dc7a144cfe4ee160b18626626612 (patch) | |
tree | 737686c04a05b8d4e21415f37018ea9453738cb0 /system/database/DB.php | |
parent | 9ba661b02c492e89028e5c67b7edbfc0efefc9f1 (diff) |
Revert/optimize some changes from 48a2baf0e288accd206f5da5031d29076e130792
Diffstat (limited to 'system/database/DB.php')
-rwxr-xr-x | system/database/DB.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/DB.php b/system/database/DB.php index b0113b6f4..00d14b43e 100755 --- a/system/database/DB.php +++ b/system/database/DB.php @@ -106,7 +106,7 @@ function &DB($params = '', $query_builder_override = NULL) } // No DB specified yet? Beat them senseless... - if ( ! isset($params['dbdriver']) OR $params['dbdriver'] === '') + if (empty($params['dbdriver'])) { show_error('You have not selected a database type to connect to.'); } @@ -157,7 +157,7 @@ function &DB($params = '', $query_builder_override = NULL) $DB->initialize(); } - if (isset($params['stricton']) && $params['stricton'] === TRUE) + if ( ! empty($params['stricton'])) { $DB->query('SET SESSION sql_mode="STRICT_ALL_TABLES"'); } |