Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-11-08 17:57:05 +0400
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-11-08 17:57:05 +0400
commitb9a62e9b5130f43ded3ca0ecc70a0d7acb73b610 (patch)
treef72a5c4d22598a5125cff6931a76c60ec2cd5953 /lib/db.php
parent5965b68cc3fc212756a2904086f051136103003f (diff)
use empty to check for null and ''
Diffstat (limited to 'lib/db.php')
-rw-r--r--lib/db.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/db.php b/lib/db.php
index 4932c5fb500..452c31b9a60 100644
--- a/lib/db.php
+++ b/lib/db.php
@@ -567,8 +567,8 @@ class OC_DB {
$CONFIG_DBHOST = OC_Config::getValue('dbhost', '');
if( $CONFIG_DBTYPE === 'oci'
- && $CONFIG_DBNAME === ''
- && $CONFIG_DBHOST !== null && $CONFIG_DBHOST !== ''
+ && $CONFIG_DBNAME === ''
+ && ! empty($CONFIG_DBHOST)
) {
// we are connecting by user name, pwd and SID (host)
$CONFIG_DBUSER = OC_Config::getValue('dbuser', '');