summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-01-13 20:30:42 -0800
committerBrion Vibber <brion@pobox.com>2010-01-13 20:30:42 -0800
commit82f2fe8cca3914ad2a962855951be226141a9d78 (patch)
treeb4f6d3b9b6176b6430d0254a371271a696bd1a9d
parentec873922e3af7efd1aa6d26ea19c90999f9961b3 (diff)
in case we have cached 'fake' inboxes, make sure we rebuild them running initializeinbox.php
-rw-r--r--scripts/initializeinbox.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/initializeinbox.php b/scripts/initializeinbox.php
index 5ae9f7d03..781179401 100644
--- a/scripts/initializeinbox.php
+++ b/scripts/initializeinbox.php
@@ -93,6 +93,12 @@ function initializeInbox($user)
$inbox = Inbox::staticGet('user_id', $user_id);
+ if ($inbox && !empty($inbox->fake)) {
+ if (!have_option('q', 'quiet')) {
+ echo "(replacing faux cached inbox)";
+ }
+ $inbox = false;
+ }
if (!empty($inbox)) {
if (!have_option('q', 'quiet')) {
print "SKIP\n";