summaryrefslogtreecommitdiff
path: root/actions/userauthorization.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-09-26 10:50:08 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-09-26 10:50:08 -0400
commit7ff02bb7d4483b3dc24edd78551a3936798056a8 (patch)
tree38310dbf82738f2eb9c6d49ab796132c837378f6 /actions/userauthorization.php
parentcb265a2d8d475f024e25b56cd3632e381d8dd804 (diff)
try to clean up user-without-profile errors
darcs-hash:20080926145008-5ed1f-8a60ed3c5adbfe75aa044732e8d10dbdb9b93089.gz
Diffstat (limited to 'actions/userauthorization.php')
-rw-r--r--actions/userauthorization.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/actions/userauthorization.php b/actions/userauthorization.php
index 735bcb6b5..680f55094 100644
--- a/actions/userauthorization.php
+++ b/actions/userauthorization.php
@@ -154,6 +154,11 @@ class UserauthorizationAction extends Action {
$params['omb_version'] = OMB_VERSION_01;
$user = User::staticGet('uri', $req->get_parameter('omb_listener'));
$profile = $user->getProfile();
+ if (!$profile) {
+ common_log_db_error($user, 'SELECT', __FILE__);
+ $this->server_error(_('User without matching profile'));
+ return;
+ }
$params['omb_listener_nickname'] = $user->nickname;
$params['omb_listener_profile'] = common_local_url('showstream',
array('nickname' => $user->nickname));