aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorcvogeley <christian.vogeley@hotmail.de>2014-01-03 12:28:34 -0800
committercvogeley <christian.vogeley@hotmail.de>2014-01-03 12:28:34 -0800
commit24850a4ea4676c96b6e0f97b45b23fe12e1c80a2 (patch)
treeb8ce2f3b9ea14bb47b5f09ba64d17a0cc609154b /mod/item.php
parent475b24ca9e758b257bde6f81c727178ae8b64bec (diff)
parent87ff49544376f71cf0f10aef5123886a99b36239 (diff)
downloadvolse-hubzilla-24850a4ea4676c96b6e0f97b45b23fe12e1c80a2.tar.gz
volse-hubzilla-24850a4ea4676c96b6e0f97b45b23fe12e1c80a2.tar.bz2
volse-hubzilla-24850a4ea4676c96b6e0f97b45b23fe12e1c80a2.zip
Merge pull request #254 from cvogeley/master
Webpage fixes for the moment without the fix for page not found after editing a webpage
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/item.php b/mod/item.php
index 444248846..2c0a36d52 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -1146,8 +1146,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)
);
}