Code review changes
This commit is contained in:
parent
126aa6f148
commit
9eba41598d
2 changed files with 2 additions and 6 deletions
|
@ -2218,11 +2218,7 @@ class Contact
|
|||
self::updateAvatar($id, $ret['photo'], $update);
|
||||
}
|
||||
|
||||
if (empty($guid)) {
|
||||
$uriid = ItemURI::getIdByURI($ret['url']);
|
||||
} else {
|
||||
$uriid = ItemURI::insert(['uri' => $ret['url'], 'guid' => $guid]);
|
||||
}
|
||||
$uriid = ItemURI::insert(['uri' => $ret['url'], 'guid' => $guid]);
|
||||
|
||||
if (!$update) {
|
||||
self::updateContact($id, $uid, $contact['url'], $ret['url'], ['failed' => false, 'last-update' => $updated, 'success_update' => $updated]);
|
||||
|
|
|
@ -113,7 +113,7 @@ class Photo extends BaseModule
|
|||
}
|
||||
|
||||
if (empty($id)) {
|
||||
Logger::notice('No picture id was detected', ['parameters' => $parameters]);
|
||||
Logger::notice('No picture id was detected', ['parameters' => $parameters, 'query' => DI::args()->getQueryString()]);
|
||||
throw new HTTPException\NotFoundException(DI::l10n()->t('The Photo is not available.'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue