From 06f1910ac0823cf19fac1e03caf12b6bcb47cc6a Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Mon, 4 Sep 2017 13:28:49 +0200 Subject: fix the error reporting query in /display. we need item_deleted instead of item_flags and remove id = $item_hash from the query since we always provide the mid and never the id iirc --- Zotlabs/Module/Display.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Zotlabs') diff --git a/Zotlabs/Module/Display.php b/Zotlabs/Module/Display.php index 2b2722421..4732045f5 100644 --- a/Zotlabs/Module/Display.php +++ b/Zotlabs/Module/Display.php @@ -330,8 +330,7 @@ class Display extends \Zotlabs\Web\Controller { if((($update && $load) || $checkjs->disabled()) && (! $items)) { - $r = q("SELECT id, item_flags FROM item WHERE id = '%s' OR mid = '%s' LIMIT 1", - dbesc($item_hash), + $r = q("SELECT id, item_deleted FROM item WHERE mid = '%s' LIMIT 1", dbesc($item_hash) ); if($r) { -- cgit v1.2.3