1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-02 14:57:37 +02:00

[ticket/16689] Fix SQL errors for Bitly OAuth

PHPBB3-16689
This commit is contained in:
3D-I
2021-01-19 15:29:05 +01:00
parent c543400955
commit 6f183a831c

View File

@@ -77,6 +77,7 @@ class bitly extends base
throw new exception('AUTH_PROVIDER_OAUTH_ERROR_REQUEST'); throw new exception('AUTH_PROVIDER_OAUTH_ERROR_REQUEST');
} }
// Prevent SQL error
if (!isset($result['data']['login'])) if (!isset($result['data']['login']))
{ {
throw new exception('AUTH_PROVIDER_OAUTH_RETURN_ERROR'); throw new exception('AUTH_PROVIDER_OAUTH_RETURN_ERROR');
@@ -106,6 +107,7 @@ class bitly extends base
throw new exception('AUTH_PROVIDER_OAUTH_ERROR_REQUEST'); throw new exception('AUTH_PROVIDER_OAUTH_ERROR_REQUEST');
} }
// Prevent SQL error
if (!isset($result['data']['login'])) if (!isset($result['data']['login']))
{ {
throw new exception('AUTH_PROVIDER_OAUTH_RETURN_ERROR'); throw new exception('AUTH_PROVIDER_OAUTH_RETURN_ERROR');