actually use the user id instead of 0 ;)

This commit is contained in:
Brion Vibber 2010-01-13 20:46:44 -08:00
parent 82f2fe8cca
commit 35a2f8de4d
1 changed files with 2 additions and 2 deletions

View 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";