aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-03-23 11:38:42 +0000
committerMario <mario@mariovavti.com>2021-03-23 11:38:42 +0000
commit2d716b74b9a879cbeaa8a3208dd6be2516b21fe7 (patch)
tree99d52434402b1b93549d7566075e911fd5b308ae
parent43c5b723175fded3996d5bca02902a3da7eb40e8 (diff)
downloadvolse-hubzilla-2d716b74b9a879cbeaa8a3208dd6be2516b21fe7.tar.gz
volse-hubzilla-2d716b74b9a879cbeaa8a3208dd6be2516b21fe7.tar.bz2
volse-hubzilla-2d716b74b9a879cbeaa8a3208dd6be2516b21fe7.zip
more work on mod display
-rw-r--r--Zotlabs/Module/Display.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/Zotlabs/Module/Display.php b/Zotlabs/Module/Display.php
index 1aac7e328..62e7dbf8a 100644
--- a/Zotlabs/Module/Display.php
+++ b/Zotlabs/Module/Display.php
@@ -258,14 +258,13 @@ class Display extends \Zotlabs\Web\Controller {
$r = null;
if(local_channel()) {
- $r = q("SELECT item.id AS item_id FROM item WHERE uid IN (%d, %d) AND mid = '%s' $item_normal LIMIT 1",
+ $r = q("SELECT item.id AS item_id FROM item WHERE uid = %d AND mid = '%s' $item_normal LIMIT 1",
intval(local_channel()),
- intval($sys_id),
dbesc($target_item['parent_mid'])
);
}
- if($r === null) {
+ if(!$r) {
$r = q("SELECT item.id AS item_id FROM item
WHERE ((mid = '%s'
AND (((( item.allow_cid = '' AND item.allow_gid = '' AND item.deny_cid = ''
@@ -292,18 +291,17 @@ class Display extends \Zotlabs\Web\Controller {
$r = null;
if(local_channel()) {
$r = q("SELECT item.parent AS item_id from item
- WHERE uid IN (%d, %d)
+ WHERE uid = %d
AND parent_mid = '%s'
$item_normal_update
$simple_update
LIMIT 1",
intval(local_channel()),
- intval($sys_id),
dbesc($target_item['parent_mid'])
);
}
- if($r === null) {
+ if(! $r) {
$r = q("SELECT item.id as item_id from item
WHERE ((parent_mid = '%s'
AND (((( item.allow_cid = '' AND item.allow_gid = '' AND item.deny_cid = ''