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
This commit is contained in:
parent
e4b0e31a28
commit
06f1910ac0
@ -330,8 +330,7 @@ class Display extends \Zotlabs\Web\Controller {
|
|||||||
|
|
||||||
if((($update && $load) || $checkjs->disabled()) && (! $items)) {
|
if((($update && $load) || $checkjs->disabled()) && (! $items)) {
|
||||||
|
|
||||||
$r = q("SELECT id, item_flags FROM item WHERE id = '%s' OR mid = '%s' LIMIT 1",
|
$r = q("SELECT id, item_deleted FROM item WHERE mid = '%s' LIMIT 1",
|
||||||
dbesc($item_hash),
|
|
||||||
dbesc($item_hash)
|
dbesc($item_hash)
|
||||||
);
|
);
|
||||||
if($r) {
|
if($r) {
|
||||||
|
Reference in New Issue
Block a user