fix for issue #24

This commit is contained in:
patrickober 2019-02-20 22:14:51 +01:00
parent b6bd1551ca
commit a825e2c29d
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ $resp = array("error" => "Unknown error", "message" => "An unknown error has occ
// get information on user associated to the token
$info_oauth = $server->getAccessTokenData(OAuth2\Request::createFromGlobals());
$user = $info_oauth["user_id"];
$assoc_id = $info_oauth["assoc_id"];
$assoc_id = intval($info_oauth["assoc_id"]);
// Open a LDAP connection
$ldap = new LDAP($hostname,$port,$ldap_version);