mirror of
https://github.com/friendica/friendica
synced 2025-04-27 20:30:13 +00:00
Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
f5fd99f7ea
commit
d5bc6d0006
2 changed files with 3 additions and 3 deletions
|
@ -856,7 +856,7 @@ class Item
|
|||
}
|
||||
|
||||
$user = User::getById($post['uid'], ['allow_cid', 'allow_gid', 'deny_cid', 'deny_gid']);
|
||||
if (!DBA::isResult($user)) {
|
||||
if (!$user) {
|
||||
throw new HTTPException\NotFoundException($this->l10n->t('Unable to locate original post.'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue