diff options
author | Brion Vibber <brion@pobox.com> | 2010-01-13 20:30:42 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-01-13 20:30:42 -0800 |
commit | 82f2fe8cca3914ad2a962855951be226141a9d78 (patch) | |
tree | b4f6d3b9b6176b6430d0254a371271a696bd1a9d /scripts | |
parent | ec873922e3af7efd1aa6d26ea19c90999f9961b3 (diff) |
in case we have cached 'fake' inboxes, make sure we rebuild them running initializeinbox.php
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/initializeinbox.php | 6 |
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"; |