X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fdisplay.php;h=de46cce0cb48f0e256ebd8681516f6fbb3f7c255;hb=388b963714895b6aee59648084fe4a66a0964efc;hp=b388b915e17a9b79c359ee6a957fe605c9769baf;hpb=01205f7d41d8b9e180f7dc00e22c7cb18bdf7d5c;p=friendica.git diff --git a/mod/display.php b/mod/display.php index b388b915e1..de46cce0cb 100644 --- a/mod/display.php +++ b/mod/display.php @@ -172,6 +172,8 @@ function display_content(App $a, $update = false, $update_uid = 0) $o = ''; + $item = null; + if ($update) { $item_id = $_REQUEST['item_id']; $item = Item::selectFirst(['uid', 'parent', 'parent-uri'], ['id' => $item_id]); @@ -221,7 +223,7 @@ function display_content(App $a, $update = false, $update_uid = 0) } } - if (!$item_id) { + if (empty($item)) { throw new HTTPException\NotFoundException(L10n::t('The requested item doesn\'t exist or has been deleted.')); }