aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-22 21:04:54 -0800
committerfriendica <info@friendica.com>2015-01-22 21:04:54 -0800
commit4c2a1e572a03e253f05f03e400af26d403cbda32 (patch)
treeedf7afa0bb97dfb9c8ea598a28c3e6281a65ec90 /mod/item.php
parent6e0e3b2433fc426b758a55811f56536d58705813 (diff)
downloadvolse-hubzilla-4c2a1e572a03e253f05f03e400af26d403cbda32.tar.gz
volse-hubzilla-4c2a1e572a03e253f05f03e400af26d403cbda32.tar.bz2
volse-hubzilla-4c2a1e572a03e253f05f03e400af26d403cbda32.zip
start on item_restrict conversion
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/mod/item.php b/mod/item.php
index 26985dea4..294ee641f 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -1047,11 +1047,10 @@ function item_check_service_class($channel_id,$iswebpage) {
if ($iswebpage) {
$r = q("select count(i.id) as total from item i
right join channel c on (i.author_xchan=c.channel_hash and i.uid=c.channel_id )
- and i.parent=i.id and (i.item_restrict & %d)>0 and not (i.item_restrict & %d)>0 and i.uid= %d ",
+ and i.parent=i.id and (i.item_restrict & %d)>0 and i.item_deleted = 0 and i.uid= %d ",
intval(ITEM_WEBPAGE),
- intval(ITEM_DELETED),
- intval($channel_id)
- );
+ intval($channel_id)
+ );
}
else {
$r = q("select count(i.id) as total from item i