fix syntax
[Snippets.git] / LDAP.class.php
index 491e260d61e9b2b0f7b142dfe1547c425a6b4164..8063760aedcb874e7b9d1ff456050342ac9fb2f0 100644 (file)
@@ -10,7 +10,7 @@ class LDAP {
         * LDAP resource id
         * @var object
         */
-       protected $ldap = Null; 
+       protected $ldap = null; 
        
        /**
         * LDAP DN
@@ -75,7 +75,7 @@ class LDAP {
                or see here: http://techiesf1.blogspot.de/2012/03/add-ldap-user-from-php.html
                */
                if (is_array($user) && !empty($user)) {
-                       if (ldap_add($this->ldap, "uid=".$user['uid'].",".$this->dn, $user) {
+                       if (ldap_add($this->ldap, "uid=".$user['uid'].",".$this->dn, $user)) {
                                return true;
                        }
                }