Skip to content

Commit

Permalink
Merge branch 'master' into 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnucki committed Sep 28, 2015
2 parents b6c4606 + 1487200 commit c45bd9a
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions Controller/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,13 @@ protected function formatRawData(Request $request, $raw, array $oldRaw = array()
*/
protected function getAuthspace(Request $request)
{
$client = $this->getClient($request);
try {
$client = $this->getClient($request);
} catch (NotFoundHttpException $e) {
// Can have no client.
}

if (null === $client) {
if (!isset($client)) {
return;
}

Expand Down Expand Up @@ -525,9 +529,13 @@ protected function getClient(Request $request)
*/
protected function canPerformWithoutAuthspace(Request $request)
{
$client = $this->getClient($request);
try {
$client = $this->getClient($request);
} catch (NotFoundHttpException $e) {
// Can have no client.
}

if (null === $client) {
if (!isset($client)) {
return false;
}

Expand Down

0 comments on commit c45bd9a

Please sign in to comment.