]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
actually use the user id instead of 0 ;)
authorBrion Vibber <brion@pobox.com>
Thu, 14 Jan 2010 04:46:44 +0000 (20:46 -0800)
committerBrion Vibber <brion@pobox.com>
Thu, 14 Jan 2010 04:46:44 +0000 (20:46 -0800)
scripts/initializeinbox.php

index 781179401cc788455d6267461e42df3903b2509e..44508fe22abf87f6b4b96baed93d141f4f5d0891 100644 (file)
@@ -91,7 +91,7 @@ function initializeInbox($user)
         print "Initializing inbox for $user->nickname...";
     }
 
-    $inbox = Inbox::staticGet('user_id', $user_id);
+    $inbox = Inbox::staticGet('user_id', $user->id);
 
     if ($inbox && !empty($inbox->fake)) {
         if (!have_option('q', 'quiet')) {
@@ -104,7 +104,7 @@ function initializeInbox($user)
             print "SKIP\n";
         }
     } else {
-        $inbox = Inbox::initialize($user_id);
+        $inbox = Inbox::initialize($user->id);
         if (!have_option('q', 'quiet')) {
             if (empty($inbox)) {
                 print "ERR\n";