mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/16689] Fix SQL errors for Bitly OAuth
PHPBB3-16689
This commit is contained in:
@@ -77,6 +77,7 @@ class bitly extends base
|
||||
throw new exception('AUTH_PROVIDER_OAUTH_ERROR_REQUEST');
|
||||
}
|
||||
|
||||
// Prevent SQL error
|
||||
if (!isset($result['data']['login']))
|
||||
{
|
||||
throw new exception('AUTH_PROVIDER_OAUTH_RETURN_ERROR');
|
||||
@@ -106,6 +107,7 @@ class bitly extends base
|
||||
throw new exception('AUTH_PROVIDER_OAUTH_ERROR_REQUEST');
|
||||
}
|
||||
|
||||
// Prevent SQL error
|
||||
if (!isset($result['data']['login']))
|
||||
{
|
||||
throw new exception('AUTH_PROVIDER_OAUTH_RETURN_ERROR');
|
||||
|
Reference in New Issue
Block a user