Skip to content

Commit e27a330

Browse files
committed
details
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
1 parent 8605c8c commit e27a330

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Service/GoogleAPIService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ public function simpleRequest(string $userId, string $url, array $params = [], s
277277
return ['error' => $this->l10n->t('Bad credentials')];
278278
} else {
279279
return [
280-
'content' => $body,
280+
'body' => $body,
281281
'headers' => $response->getHeaders(),
282282
];
283283
}

lib/Service/GoogleContactsAPIService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ public function importContacts(string $userId, ?string $uri, int $key, ?string $
317317
}
318318
}
319319

320-
$b64Photo = stripslashes('data:image/' . strtolower($type) . ';base64\,') . base64_encode($photoFile['content']);
320+
$b64Photo = stripslashes('data:image/' . strtolower($type) . ';base64\,') . base64_encode($photoFile['body']);
321321
try {
322322
$prop = $vCard->createProperty(
323323
'PHOTO',

0 commit comments

Comments
 (0)