]> git.mxchange.org Git - friendica-addons.git/commitdiff
Remove needless parentheses
authorHypolite Petovan <mrpetovan@gmail.com>
Mon, 4 Dec 2017 07:47:08 +0000 (02:47 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Mon, 4 Dec 2017 07:47:08 +0000 (02:47 -0500)
ldapauth/ldapauth.php

index d01f83ef831d6b244a2123499c9f8b546e7a8c5f..a0b270e38842adbc1cae6322bf7efe82c12ee230 100755 (executable)
@@ -89,7 +89,7 @@ function ldapauth_authenticate($username, $password)
        $ldap_autocreateaccount_emailattribute = Config::get('ldapauth', 'ldap_autocreateaccount_emailattribute');
        $ldap_autocreateaccount_nameattribute  = Config::get('ldapauth', 'ldap_autocreateaccount_nameattribute');
 
-       if (!((strlen($password)) && (function_exists('ldap_connect')) && (strlen($ldap_server)))) {
+       if (!(strlen($password) && function_exists('ldap_connect') && strlen($ldap_server))) {
                logger("ldapauth: not configured or missing php-ldap module");
                return false;
        }