limit 1
This commit is contained in:
parent
30f71ad632
commit
088a93e023
@ -88,7 +88,7 @@ class Item extends Controller {
|
|||||||
|
|
||||||
if ($xchans) {
|
if ($xchans) {
|
||||||
$hashes = ids_to_querystr($xchans,'xchan_hash',true);
|
$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'])
|
dbesc($r[0]['parent_mid'])
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user