fix issue when app creator is null

This commit is contained in:
Nicolas Le Goff
2012-04-27 13:07:15 +02:00
parent 7627e3774a
commit fc61c289a9

View File

@@ -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,