aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2019-03-13 13:21:04 +1100
committerMike Macgirvin <mike@macgirvin.com>2019-03-13 13:21:04 +1100
commit088a93e023aa23d089dad2a06d61b540d3ea47a1 (patch)
tree09678bb04dd872822706ee54b0869080ae8ed208 /Zotlabs/Module
parent30f71ad63292c52d037946ad92c9a8a0940ff0c1 (diff)
downloadvolse-hubzilla-088a93e023aa23d089dad2a06d61b540d3ea47a1.tar.gz
volse-hubzilla-088a93e023aa23d089dad2a06d61b540d3ea47a1.tar.bz2
volse-hubzilla-088a93e023aa23d089dad2a06d61b540d3ea47a1.zip
limit 1
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Item.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php
index df9a80583..c466e7c82 100644
--- a/Zotlabs/Module/Item.php
+++ b/Zotlabs/Module/Item.php
@@ -88,7 +88,7 @@ class Item extends Controller {
if ($xchans) {
$hashes = ids_to_querystr($xchans,'xchan_hash',true);
- $i = q("select id as item_id from item where mid = '%s' $item_normal and owner_xchan in ( " . protect_sprintf($hashes) . " ) ",
+ $i = q("select id as item_id from item where mid = '%s' $item_normal and owner_xchan in ( " . protect_sprintf($hashes) . " ) limit 1",
dbesc($r[0]['parent_mid'])
);
}