diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-01-26 17:34:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-26 17:34:55 +0100 |
commit | 9be6050cc42c2760bd2276942a24ba3db288b551 (patch) | |
tree | 068e9565a4c478a7606fc5ca0dff5ad52d7a7550 /apps/user_ldap/lib/User_LDAP.php | |
parent | 97c216ea0627d72059ef7c5d714968fb11c21f78 (diff) | |
parent | 2ad2eb38e83a3b02038fa09ac72c9c4294a91248 (diff) | |
download | nextcloud-server-9be6050cc42c2760bd2276942a24ba3db288b551.tar.gz nextcloud-server-9be6050cc42c2760bd2276942a24ba3db288b551.zip |
Merge pull request #8072 from nextcloud/type-casting
Use type casting instead of *val() method
Diffstat (limited to 'apps/user_ldap/lib/User_LDAP.php')
-rw-r--r-- | apps/user_ldap/lib/User_LDAP.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/user_ldap/lib/User_LDAP.php b/apps/user_ldap/lib/User_LDAP.php index cc3bf85716f..4943a370316 100644 --- a/apps/user_ldap/lib/User_LDAP.php +++ b/apps/user_ldap/lib/User_LDAP.php @@ -232,7 +232,7 @@ class User_LDAP extends BackendUtility implements \OCP\IUserBackend, \OCP\UserIn if($user->getUsername() !== false && $this->access->setPassword($user->getDN(), $password)) { $ldapDefaultPPolicyDN = $this->access->connection->ldapDefaultPPolicyDN; $turnOnPasswordChange = $this->access->connection->turnOnPasswordChange; - if (!empty($ldapDefaultPPolicyDN) && (intval($turnOnPasswordChange) === 1)) { + if (!empty($ldapDefaultPPolicyDN) && ((int)$turnOnPasswordChange === 1)) { //remove last password expiry warning if any $notification = $this->notificationManager->createNotification(); $notification->setApp('user_ldap') @@ -387,7 +387,7 @@ class User_LDAP extends BackendUtility implements \OCP\IUserBackend, \OCP\UserIn } $marked = $this->ocConfig->getUserValue($uid, 'user_ldap', 'isDeleted', 0); - if(intval($marked) === 0) { + if((int)$marked === 0) { \OC::$server->getLogger()->notice( 'User '.$uid . ' is not marked as deleted, not cleaning up.', array('app' => 'user_ldap')); @@ -549,7 +549,7 @@ class User_LDAP extends BackendUtility implements \OCP\IUserBackend, \OCP\UserIn | Backend::GET_DISPLAYNAME | Backend::PROVIDE_AVATAR | Backend::COUNT_USERS - | ((intval($this->access->connection->turnOnPasswordChange) === 1)?(Backend::SET_PASSWORD):0) + | (((int)$this->access->connection->turnOnPasswordChange === 1)?(Backend::SET_PASSWORD):0) | $this->userPluginManager->getImplementedActions()) & $actions); } |