Revert/optimize some changes from 48a2baf0e288accd206f5da5031d29076e130792
diff --git a/system/database/DB.php b/system/database/DB.php
index b0113b6..00d14b4 100755
--- a/system/database/DB.php
+++ b/system/database/DB.php
@@ -106,7 +106,7 @@
}
// 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 @@
$DB->initialize();
}
- if (isset($params['stricton']) && $params['stricton'] === TRUE)
+ if ( ! empty($params['stricton']))
{
$DB->query('SET SESSION sql_mode="STRICT_ALL_TABLES"');
}