be careful with mixed return values even if it may look unsuspicious…
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
e3fd241aba
commit
c6b540a738
|
@ -261,7 +261,7 @@ class SyncService {
|
|||
/**
|
||||
* @param IUser $user
|
||||
*/
|
||||
public function updateUser($user) {
|
||||
public function updateUser(IUser $user) {
|
||||
$systemAddressBook = $this->getLocalSystemAddressBook();
|
||||
$addressBookId = $systemAddressBook['id'];
|
||||
$converter = new Converter($this->accountManager);
|
||||
|
|
|
@ -101,7 +101,9 @@ class HookManager {
|
|||
|
||||
public function postCreateUser($params) {
|
||||
$user = $this->userManager->get($params['uid']);
|
||||
$this->syncService->updateUser($user);
|
||||
if ($user instanceof IUser) {
|
||||
$this->syncService->updateUser($user);
|
||||
}
|
||||
}
|
||||
|
||||
public function preDeleteUser($params) {
|
||||
|
|
Loading…
Reference in New Issue