diff --git a/lib/Service/SocialApiService.php b/lib/Service/SocialApiService.php index 8594ba684..03484c99e 100644 --- a/lib/Service/SocialApiService.php +++ b/lib/Service/SocialApiService.php @@ -209,7 +209,7 @@ public function updateContact(string $addressbookId, string $contactId, string $ } $addressBook->createOrUpdate($changes, $addressbookId); - } catch (Exception $e) { + } catch (\Exception $e) { return new JSONResponse([], Http::STATUS_INTERNAL_SERVER_ERROR); } return new JSONResponse([], Http::STATUS_OK); @@ -383,7 +383,7 @@ public function updateAddressbooks(string $network, string $userId, string $offs try { $r = $this->updateContact($addressBook->getURI(), $contact['UID'], $network); $response = $this->registerUpdateResult($response, $contact['FN'], $r->getStatus()); - } catch (Exception $e) { + } catch (\Exception $e) { $response = $this->registerUpdateResult($response, $contact['FN'], '-1'); }