mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
fix issue when app creator is null
This commit is contained in:
@@ -611,7 +611,7 @@ class API_OAuth2_Application
|
|||||||
$client_token = API_OAuth2_Token::generate_token();
|
$client_token = API_OAuth2_Token::generate_token();
|
||||||
|
|
||||||
$params = array(
|
$params = array(
|
||||||
':usr_id' => $user->get_id(),
|
':usr_id' => $user ? $user->get_id() : null,
|
||||||
':name' => $name,
|
':name' => $name,
|
||||||
':client_id' => $client_token,
|
':client_id' => $client_token,
|
||||||
':client_secret' => $client_secret,
|
':client_secret' => $client_secret,
|
||||||
|
Reference in New Issue
Block a user