$done = null;
- if (Event::handle('StartImportActivity',
- array($user, $author, $activity, $trusted, &$done))) {
- try {
+ try {
+ if (Event::handle('StartImportActivity',
+ array($user, $author, $activity, $trusted, &$done))) {
switch ($activity->verb) {
case ActivityVerb::FOLLOW:
$this->subscribeProfile($user, $author, $activity);
Event::handle('EndImportActivity',
array($user, $author, $activity, $trusted));
$done = true;
- } catch (Exception $e) {
- common_log(LOG_ERR, $e->getMessage());
- $done = true;
}
+ } catch (Exception $e) {
+ common_log(LOG_ERR, $e->getMessage());
+ $done = true;
}
return $done;
}