aboutsummaryrefslogtreecommitdiffstats
path: root/mod/layouts.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/layouts.php')
-rw-r--r--mod/layouts.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/layouts.php b/mod/layouts.php
index 9d27ed4ac..ba1d900a7 100644
--- a/mod/layouts.php
+++ b/mod/layouts.php
@@ -135,8 +135,9 @@ function layouts_content(&$a) {
$editor = status_editor($a,$x);
$r = q("select iid, sid, mid, title, body, mimetype, created, edited from item_id left join item on item_id.iid = item.id
- where item_id.uid = %d and service = 'PDL' order by item.created desc",
- intval($owner)
+ where item_id.uid = %d and service = 'PDL' and item_restrict = %d order by item.created desc",
+ intval($owner),
+ intval(ITEM_PDL)
);
$pages = null;