mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +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();
|
||||
|
||||
$params = array(
|
||||
':usr_id' => $user->get_id(),
|
||||
':usr_id' => $user ? $user->get_id() : null,
|
||||
':name' => $name,
|
||||
':client_id' => $client_token,
|
||||
':client_secret' => $client_secret,
|
||||
|
Reference in New Issue
Block a user