summaryrefslogtreecommitdiff
path: root/lib/deluserqueuehandler.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-04-10 17:54:37 -0700
committerBrion Vibber <brion@pobox.com>2010-04-10 17:54:37 -0700
commitedd883d3b009788049a9326bd6bdcc7846f87a8a (patch)
treed8aa5c080e48da1adffc5cefdf862ebd71afe097 /lib/deluserqueuehandler.php
parent166c1edba97d065d0fd424621305fd016e644c43 (diff)
parent71c828de89d4092579470c9f2ba821ae803cb557 (diff)
Merge branch 'master' of gitorious.org:statusnet/mainline into testing
Diffstat (limited to 'lib/deluserqueuehandler.php')
-rw-r--r--lib/deluserqueuehandler.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/deluserqueuehandler.php b/lib/deluserqueuehandler.php
index 4a1233a5e..710303938 100644
--- a/lib/deluserqueuehandler.php
+++ b/lib/deluserqueuehandler.php
@@ -49,9 +49,13 @@ class DelUserQueueHandler extends QueueHandler
return true;
}
- if (!$user->hasRole(Profile_role::DELETED)) {
- common_log(LOG_INFO, "User {$user->nickname} is not pending deletion; aborting.");
- return true;
+ try {
+ if (!$user->hasRole(Profile_role::DELETED)) {
+ common_log(LOG_INFO, "User {$user->nickname} is not pending deletion; aborting.");
+ return true;
+ }
+ } catch (UserNoProfileException $unp) {
+ common_log(LOG_INFO, "Deleting user {$user->nickname} with no profile... probably a good idea!");
}
$notice = $this->getNextBatch($user);