diff --git a/src/Xavrsl/Cas/Sso.php b/src/Xavrsl/Cas/Sso.php index 42286b5..870cd61 100644 --- a/src/Xavrsl/Cas/Sso.php +++ b/src/Xavrsl/Cas/Sso.php @@ -52,7 +52,7 @@ private function configureDebug() { if($debug = $this->config['cas_debug']) { - $path = (gettype($debug) == 'string') ? $debug : false; + $path = (gettype($debug) == 'string') ? $debug : ''; phpCAS::setDebug($path); } } @@ -164,6 +164,16 @@ public function user() return phpCAS::getUser(); } + /** + * getAttributes' simple wrapper + * + * @return array|null + */ + public function getAttributes() + { + return phpCAS::getAttributes(); + } + /** * This method is used to logout from CAS *