aboutsummaryrefslogtreecommitdiffstats
path: root/mod/webpages.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-05-13 16:27:04 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-05-13 16:27:04 -0700
commitc82082d2bbb00294d62330d577dcdbc9ec6b9d1c (patch)
treeb8f93c5955152af991755c5d6b47a89f5548c642 /mod/webpages.php
parentd6f98e651170827453a27fec367f0f8059f3a002 (diff)
downloadvolse-hubzilla-c82082d2bbb00294d62330d577dcdbc9ec6b9d1c.tar.gz
volse-hubzilla-c82082d2bbb00294d62330d577dcdbc9ec6b9d1c.tar.bz2
volse-hubzilla-c82082d2bbb00294d62330d577dcdbc9ec6b9d1c.zip
restrict webpage list to undeleted items
Diffstat (limited to 'mod/webpages.php')
-rw-r--r--mod/webpages.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/webpages.php b/mod/webpages.php
index 859c93fde..62abfb34a 100644
--- a/mod/webpages.php
+++ b/mod/webpages.php
@@ -133,8 +133,9 @@ function webpages_content(&$a) {
$sql_extra = item_permissions_sql($owner);
$r = q("select * from item_id left join item on item_id.iid = item.id
- where item_id.uid = %d and service = 'WEBPAGE' $sql_extra order by item.created desc",
- intval($owner)
+ where item_id.uid = %d and service = 'WEBPAGE' and item_restrict = %d $sql_extra order by item.created desc",
+ intval($owner),
+ intval(ITEM_WEBPAGE)
);
$pages = null;