Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
/**
* @param IUser $user
*/
- public function updateUser($user) {
+ public function updateUser(IUser $user) {
$systemAddressBook = $this->getLocalSystemAddressBook();
$addressBookId = $systemAddressBook['id'];
$converter = new Converter($this->accountManager);
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) {