Remove unused return value of Contact::updateAvatar

This commit is contained in:
Hypolite Petovan 2020-03-09 11:39:48 -04:00
parent 89534b5be3
commit 07dde8deb8

View file

@ -1911,7 +1911,7 @@ class Contact
* @param int $cid Contact id * @param int $cid Contact id
* @param bool $force force picture update * @param bool $force force picture update
* *
* @return array Returns array of the different avatar sizes * @return void
* @throws HTTPException\InternalServerErrorException * @throws HTTPException\InternalServerErrorException
* @throws HTTPException\NotFoundException * @throws HTTPException\NotFoundException
* @throws \ImagickException * @throws \ImagickException
@ -1920,8 +1920,7 @@ class Contact
{ {
$contact = DBA::selectFirst('contact', ['avatar', 'photo', 'thumb', 'micro', 'nurl'], ['id' => $cid, 'self' => false]); $contact = DBA::selectFirst('contact', ['avatar', 'photo', 'thumb', 'micro', 'nurl'], ['id' => $cid, 'self' => false]);
if (!DBA::isResult($contact)) { if (!DBA::isResult($contact)) {
Logger::error('Contact not found', ['cid' => $cid]); return;
throw new HTTPException\NotFoundException('Contact not found');
} }
$data = [ $data = [
@ -1952,12 +1951,8 @@ class Contact
DBA::update('contact', $fields, ['id' => $pcontact['id']]); DBA::update('contact', $fields, ['id' => $pcontact['id']]);
} }
} }
return $photos;
} }
} }
return $data;
} }
/** /**