aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-12-03 10:33:46 +0100
committerMax Kostikov <max@kostikov.co>2019-12-03 10:33:46 +0100
commit28a316f73f1997d72f497523d7521c6bd9736d90 (patch)
treec55a0915deb2ce4a9b62864b31ae917802963ef4
parent0532d639c29ad03d235fd93b5e442ec7a7a88f48 (diff)
downloadvolse-hubzilla-28a316f73f1997d72f497523d7521c6bd9736d90.tar.gz
volse-hubzilla-28a316f73f1997d72f497523d7521c6bd9736d90.tar.bz2
volse-hubzilla-28a316f73f1997d72f497523d7521c6bd9736d90.zip
Normalize SQL query
-rw-r--r--Zotlabs/Widget/Pinned.php2
1 files changed, 1 insertions, 1 deletions
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)
);