]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
set user takes a nickname, not a user object
authorEvan Prodromou <evan@controlezvous.ca>
Tue, 24 Jun 2008 03:28:18 +0000 (23:28 -0400)
committerEvan Prodromou <evan@controlezvous.ca>
Tue, 24 Jun 2008 03:28:18 +0000 (23:28 -0400)
darcs-hash:20080624032818-34904-bf8c5594c42c797820e080250c955645a5a84aa1.gz

lib/util.php

index 5f184cce882d0e11ea1b44d1b341787870deb7c2..791a40690dc4bbadfea2b3d707acb7361b00c230 100644 (file)
@@ -451,7 +451,6 @@ define('REMEMBERME', 'rememberme');
 define('REMEMBERME_EXPIRY', 30 * 24 * 60 * 60);
 
 function common_rememberme() {
-       common_debug('rememberme called', __FILE__);
        $user = common_current_user();
        if (!$user) {
                return false;
@@ -486,7 +485,7 @@ function common_remembered_user() {
                                                common_log_db_error($rm, 'DELETE', __FILE__);
                                                $user = NULL;
                                        } else {
-                                               common_set_user($user);
+                                               common_set_user($user->nickname);
                                                common_real_login(false);
                                                # We issue a new cookie, so they can log in
                                                # automatically again after this session