Browse Source

fix Cannot access offset of type string on string (#1570)

CauseFX 5 years ago
parent
commit
72175bdba4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/functions/sso-functions.php

+ 1 - 1
api/functions/sso-functions.php

@@ -10,7 +10,7 @@ trait SSOFunctions
 			'overseerr' => 'username',
 			'overseerr' => 'username',
 			'tautulli' => 'username'
 			'tautulli' => 'username'
 		);
 		);
-		return $userobj[$map[$app]];
+		return (gettype($userobj) == 'string') ? $userobj : $userobj[$map[$app]];
 	}
 	}
 	
 	
 	public function ssoCheck($userobj, $password, $token = null)
 	public function ssoCheck($userobj, $password, $token = null)