summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-01-13 20:46:44 -0800
committerBrion Vibber <brion@pobox.com>2010-01-13 20:46:44 -0800
commit35a2f8de4d46c403d6ca17695a8d040f003125c8 (patch)
treefe60d95b76f3e3aea86d2c4b371866b8500a1a65
parent82f2fe8cca3914ad2a962855951be226141a9d78 (diff)
actually use the user id instead of 0 ;)
-rw-r--r--scripts/initializeinbox.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/initializeinbox.php b/scripts/initializeinbox.php
index 781179401..44508fe22 100644
--- a/scripts/initializeinbox.php
+++ b/scripts/initializeinbox.php
@@ -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";