Correct wrong service class check for webpages
This commit is contained in:
parent
84d8fab6f1
commit
22e94d7d68
@ -1135,8 +1135,9 @@ function item_check_service_class($channel_id,$iswebpage) {
|
|||||||
if ($iswebpage) {
|
if ($iswebpage) {
|
||||||
$r = q("select count(i.id) as total from item i
|
$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 )
|
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) and i.uid= %d ",
|
and i.parent=i.id and (i.item_restrict & %d) and not (i.item_restrict & %d) and i.uid= %d ",
|
||||||
intval(ITEM_WEBPAGE),
|
intval(ITEM_WEBPAGE),
|
||||||
|
intval(ITEM_DELETED),
|
||||||
intval($channel_id)
|
intval($channel_id)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user