diff options
author | Christian Vogeley <christian.vogeley@hotmail.de> | 2013-12-31 16:03:25 +0100 |
---|---|---|
committer | Christian Vogeley <christian.vogeley@hotmail.de> | 2013-12-31 16:03:25 +0100 |
commit | 22e94d7d684005d01a900a23d02f8e9dd0f283d8 (patch) | |
tree | d9fe06353555926520fbcbae43b8444a572beca8 /mod/item.php | |
parent | 84d8fab6f1a049bb502c370c39fc3b44182ef24c (diff) | |
download | volse-hubzilla-22e94d7d684005d01a900a23d02f8e9dd0f283d8.tar.gz volse-hubzilla-22e94d7d684005d01a900a23d02f8e9dd0f283d8.tar.bz2 volse-hubzilla-22e94d7d684005d01a900a23d02f8e9dd0f283d8.zip |
Correct wrong service class check for webpages
Diffstat (limited to 'mod/item.php')
-rw-r--r-- | mod/item.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/item.php b/mod/item.php index 7f881d28d..d3e88fdfa 100644 --- a/mod/item.php +++ b/mod/item.php @@ -1135,8 +1135,9 @@ 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) 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_DELETED), intval($channel_id) ); } |