Skip to content

Commit

Permalink
Merge a91f378 into ae01838
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoff Lancaster committed Jan 16, 2015
2 parents ae01838 + a91f378 commit 702d057
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Exception/IDPException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ public function __construct($result)

$code = isset($result['code']) ? $result['code'] : 0;

if (isset($result['error'])) {
if (isset($result['error']) && $result['error'] !== '') {
// OAuth 2.0 Draft 10 style
$message = $result['error'];
} elseif (isset($result['message'])) {
} elseif (isset($result['message']) && $result['message'] !== '') {
// cURL style
$message = $result['message'];
} else {
Expand Down

0 comments on commit 702d057

Please sign in to comment.