diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-11-08 14:57:05 +0100 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-11-08 14:57:05 +0100 |
commit | b9a62e9b5130f43ded3ca0ecc70a0d7acb73b610 (patch) | |
tree | f72a5c4d22598a5125cff6931a76c60ec2cd5953 | |
parent | 5965b68cc3fc212756a2904086f051136103003f (diff) | |
download | nextcloud-server-b9a62e9b5130f43ded3ca0ecc70a0d7acb73b610.tar.gz nextcloud-server-b9a62e9b5130f43ded3ca0ecc70a0d7acb73b610.zip |
use empty to check for null and ''
-rw-r--r-- | lib/db.php | 4 |
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', ''); |