]> source.dussan.org Git - nextcloud-server.git/commitdiff
LDAP: also those functions were not meant to be static
authorArthur Schiwon <blizzz@owncloud.com>
Fri, 4 May 2012 11:48:55 +0000 (13:48 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Fri, 4 May 2012 11:48:55 +0000 (13:48 +0200)
apps/user_ldap/user_ldap.php

index 4c2f7ac4881f948fcb592338b9d29743a0867262..85aab2601c614138f46cb9d67899c288f6ea22f3 100755 (executable)
@@ -109,7 +109,7 @@ class OC_USER_LDAP extends OC_User_Backend {
         *
         * Get a list of all users.
         */
-       public static function getUsers(){
+       public function getUsers(){
                $ldap_users = OC_LDAP::fetchListOfUsers($this->ldapUserFilter, array(OC_LDAP::conf('ldapGroupDisplayName'), 'dn'));
                $users = OC_LDAP::ownCloudUserNames($ldap_users);
                return $users;
@@ -120,7 +120,7 @@ class OC_USER_LDAP extends OC_User_Backend {
         * @param string $uid the username
         * @return boolean
         */
-       public static function userExists($uid){
+       public function userExists($uid){
                return in_array($uid, self::getUsers());
        }