mod_display: match "message_id begins with xxxx" as well as "message_id = xxxx"
This commit is contained in:
parent
6f7fb7a2ac
commit
6f570a7df3
@ -77,8 +77,8 @@ function display_content(&$a, $update = 0, $load = false) {
|
|||||||
|
|
||||||
$target_item = null;
|
$target_item = null;
|
||||||
|
|
||||||
$r = q("select id, uid, mid, parent_mid, item_restrict from item where mid = '%s' limit 1",
|
$r = q("select id, uid, mid, parent_mid, item_restrict from item where mid like '%s' limit 1",
|
||||||
dbesc($item_hash)
|
dbesc($item_hash . '%')
|
||||||
);
|
);
|
||||||
|
|
||||||
if($r) {
|
if($r) {
|
||||||
@ -149,6 +149,7 @@ function display_content(&$a, $update = 0, $load = false) {
|
|||||||
|
|
||||||
if($load || ($_COOKIE['jsAvailable'] != 1)) {
|
if($load || ($_COOKIE['jsAvailable'] != 1)) {
|
||||||
$r = null;
|
$r = null;
|
||||||
|
|
||||||
if(local_user()) {
|
if(local_user()) {
|
||||||
$r = q("SELECT * from item
|
$r = q("SELECT * from item
|
||||||
WHERE item_restrict = 0
|
WHERE item_restrict = 0
|
||||||
@ -177,7 +178,6 @@ function display_content(&$a, $update = 0, $load = false) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$r = array();
|
$r = array();
|
||||||
|
Reference in New Issue
Block a user