diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-09-04 13:28:49 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-09-04 13:28:49 +0200 |
commit | 06f1910ac0823cf19fac1e03caf12b6bcb47cc6a (patch) | |
tree | 6276dacef1cd438e0fd9dbbbf7c904698b493b3d | |
parent | e4b0e31a2809eba08f5e6cc6f28ee57f31374535 (diff) | |
download | volse-hubzilla-06f1910ac0823cf19fac1e03caf12b6bcb47cc6a.tar.gz volse-hubzilla-06f1910ac0823cf19fac1e03caf12b6bcb47cc6a.tar.bz2 volse-hubzilla-06f1910ac0823cf19fac1e03caf12b6bcb47cc6a.zip |
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
-rw-r--r-- | Zotlabs/Module/Display.php | 3 |
1 files changed, 1 insertions, 2 deletions
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) { |