summaryrefslogtreecommitdiffstats
path: root/system/database/DB.php
diff options
context:
space:
mode:
authorTomasz Turkowski <tomasz.turkowski@westwing.de>2015-08-28 01:12:04 +0200
committerTomasz Turkowski <tomasz.turkowski@westwing.de>2015-08-28 01:14:09 +0200
commit01bb8dafa5af458c9799d80804f458edc9bf5237 (patch)
tree8616aef053cb467f5d22a90edf240bd63243626e /system/database/DB.php
parentc7fcb2803e8344d3e39169cade8fd99a0da80d37 (diff)
Change if is not set or count equals zero into if empty
Diffstat (limited to 'system/database/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.');
}