diff --git a/app/library/OAuth/Adapter/League.php b/app/library/OAuth/Adapter/League.php index cf27257..e9b8829 100644 --- a/app/library/OAuth/Adapter/League.php +++ b/app/library/OAuth/Adapter/League.php @@ -58,7 +58,12 @@ class League implements AdapterInterface */ public function getProviderName() { - return (new \ReflectionClass($this->_provider))->getShortName(); + try { + $reflection = new \ReflectionClass($this->_provider); + return $reflection->getShortName(); + } catch(\ReflectionException $ex) { + return ''; + } } /**