From 28a316f73f1997d72f497523d7521c6bd9736d90 Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Tue, 3 Dec 2019 10:33:46 +0100 Subject: Normalize SQL query --- Zotlabs/Widget/Pinned.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zotlabs/Widget/Pinned.php') diff --git a/Zotlabs/Widget/Pinned.php b/Zotlabs/Widget/Pinned.php index f200e1378..bed7c4a43 100644 --- a/Zotlabs/Widget/Pinned.php +++ b/Zotlabs/Widget/Pinned.php @@ -243,7 +243,7 @@ class Pinned { break; } - $r = q("SELECT * FROM item WHERE parent = %d AND id <> parent AND verb IN ( '%s' ) AND item_deleted = 0", + $r = q("SELECT * FROM item WHERE parent = %d AND id <> parent AND verb = '%s' AND item_deleted = 0", intval($item['id']), dbesc($v) ); -- cgit v1.2.3