1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-16 21:54:00 +02:00

[ticket/16689] Fix SQL errors for Bitly OAuth

PHPBB3-16689
This commit is contained in:
3D-I
2021-01-19 15:14:43 +01:00
parent ddf5de8349
commit 2c4b862648
2 changed files with 3 additions and 2 deletions

View File

@@ -78,7 +78,7 @@ class bitly extends base
}
// Return the unique identifier returned from bitly
return $result['data']['login'];
return $result['data']['login'] ?? throw new exception('AUTH_PROVIDER_OAUTH_RETURN_ERROR');
}
/**
@@ -102,6 +102,6 @@ class bitly extends base
}
// Return the unique identifier
return $result['data']['login'];
return $result['data']['login'] ?? throw new exception('AUTH_PROVIDER_OAUTH_RETURN_ERROR');
}
}