summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-08-31 14:38:20 +0200
committerAndrey Andreev <narf@devilix.net>2015-08-31 14:38:20 +0200
commit3f67b256aa567ac96fc39f409c889670f1ce6325 (patch)
tree520efb8338efb33353c2909c6561d8faa9f7c492
parent3d59e44c8b2cc045b7815bc565ee0a12381e461e (diff)
parent01bb8dafa5af458c9799d80804f458edc9bf5237 (diff)
Merge pull request #4082 from tomaszturkowski/develop
Simplify an if condition in DB.php
-rw-r--r--system/database/DB.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB.php b/system/database/DB.php
index 0c7cf54b3..23de414b5 100644
--- a/system/database/DB.php
+++ b/system/database/DB.php
@@ -82,7 +82,7 @@ function &DB($params = '', $query_builder_override = NULL)
}
}
- if ( ! isset($db) OR count($db) === 0)
+ if (empty($db))
{
show_error('No database connection settings were found in the database config file.');
}