Gracefully skip missing user entries when initializing inboxes in bulk

This commit is contained in:
Brion Vibber 2010-01-13 20:11:00 -08:00
parent f827242bce
commit ec873922e3

View File

@ -72,7 +72,7 @@ try {
foreach ($ids as $id) {
$user = User::staticGet('id', $id);
if (empty($user)) {
throw new Exception("Can't find user with id '$id'.");
print "Can't find user with id '$id'.\n";
}
initializeInbox($user);
}