From dd47edcd735a2f5730a7634db1542ff6d171c31b Mon Sep 17 00:00:00 2001 From: Exodus4D Date: Sun, 30 Apr 2017 15:25:23 +0200 Subject: [PATCH] - fixed "Not Authorized" bug on SSO login, closed #471 --- app/main/model/charactermodel.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/app/main/model/charactermodel.php b/app/main/model/charactermodel.php index eef3124c..52546d04 100644 --- a/app/main/model/charactermodel.php +++ b/app/main/model/charactermodel.php @@ -366,13 +366,8 @@ class CharacterModel extends BasicModel { $isAuthorized = false; $f3 = self::getF3(); - $whitelistCorporations = $whitelistAlliance = []; - if( !empty($f3->get('PATHFINDER.LOGIN.CORPORATION')) ){ - $whitelistCorporations = array_map('trim',(array) $f3->get('PATHFINDER.LOGIN.CORPORATION') ); - } - if( !empty($f3->get('PATHFINDER.LOGIN.ALLIANCE')) ){ - $whitelistAlliance = array_map('trim',(array) $f3->get('PATHFINDER.LOGIN.ALLIANCE') ); - } + $whitelistCorporations = array_filter( array_map('trim', (array)$f3->get('PATHFINDER.LOGIN.CORPORATION') ) ); + $whitelistAlliance = array_filter( array_map('trim', (array)$f3->get('PATHFINDER.LOGIN.ALLIANCE') ) ); if( empty($whitelistCorporations) &&