diff options
author | kondou <kondou@ts.unde.re> | 2013-04-20 22:45:17 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-04-20 22:46:37 +0200 |
commit | b8fe7025da4b0b6f0fde9dde4553d0b29eefb10c (patch) | |
tree | 539094c4c0e026a34c83bc92d4ad9e8e2631a423 /apps/user_ldap/appinfo | |
parent | ec280e6f9f43e2f1d74c9ddf1e0fd64aabddc25f (diff) | |
download | nextcloud-server-b8fe7025da4b0b6f0fde9dde4553d0b29eefb10c.tar.gz nextcloud-server-b8fe7025da4b0b6f0fde9dde4553d0b29eefb10c.zip |
Use !== and === in user_ldap app – Part 1
Diffstat (limited to 'apps/user_ldap/appinfo')
-rw-r--r-- | apps/user_ldap/appinfo/app.php | 2 | ||||
-rw-r--r-- | apps/user_ldap/appinfo/install.php | 2 | ||||
-rw-r--r-- | apps/user_ldap/appinfo/update.php | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/apps/user_ldap/appinfo/app.php b/apps/user_ldap/appinfo/app.php index 89410b5ef07..81eaa0404b7 100644 --- a/apps/user_ldap/appinfo/app.php +++ b/apps/user_ldap/appinfo/app.php @@ -24,7 +24,7 @@ OCP\App::registerAdmin('user_ldap', 'settings'); $configPrefixes = OCA\user_ldap\lib\Helper::getServerConfigurationPrefixes(true); -if(count($configPrefixes) == 1) { +if(count($configPrefixes) === 1) { $connector = new OCA\user_ldap\lib\Connection($configPrefixes[0]); $userBackend = new OCA\user_ldap\USER_LDAP(); $userBackend->setConnector($connector); diff --git a/apps/user_ldap/appinfo/install.php b/apps/user_ldap/appinfo/install.php index 378957ec409..c0c33a25c75 100644 --- a/apps/user_ldap/appinfo/install.php +++ b/apps/user_ldap/appinfo/install.php @@ -1,6 +1,6 @@ <?php $state = OCP\Config::getSystemValue('ldapIgnoreNamingRules', 'doSet'); -if($state == 'doSet') { +if($state === 'doSet') { OCP\Config::setSystemValue('ldapIgnoreNamingRules', false); } diff --git a/apps/user_ldap/appinfo/update.php b/apps/user_ldap/appinfo/update.php index 2fcbf1902ac..179451dad69 100644 --- a/apps/user_ldap/appinfo/update.php +++ b/apps/user_ldap/appinfo/update.php @@ -18,7 +18,7 @@ if(!is_null($pw)) { //detect if we can switch on naming guidelines. We won't do it on conflicts. //it's a bit spaghetti, but hey. $state = OCP\Config::getSystemValue('ldapIgnoreNamingRules', 'unset'); -if($state == 'unset') { +if($state === 'unset') { OCP\Config::setSystemValue('ldapIgnoreNamingRules', false); } @@ -48,7 +48,7 @@ foreach($objects as $object) { $newDN = escapeDN(mb_strtolower($dn['ldap_dn'], 'UTF-8')); if(!empty($dn['directory_uuid'])) { $uuid = $dn['directory_uuid']; - } elseif($object == 'user') { + } elseif($object === 'user') { $uuid = $userBE->getUUID($newDN); //fix home folder to avoid new ones depending on the configuration $userBE->getHome($dn['owncloud_name']); |