aboutsummaryrefslogtreecommitdiffstats
path: root/mod/lockview.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/lockview.php')
-rw-r--r--mod/lockview.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/lockview.php b/mod/lockview.php
index 6673ae709..51f7c29f3 100644
--- a/mod/lockview.php
+++ b/mod/lockview.php
@@ -16,11 +16,12 @@ function lockview_content(&$a) {
if (!in_array($type, array('item','photo','event')))
killme();
-
+
$r = q("SELECT * FROM %s WHERE id = %d LIMIT 1",
dbesc($type),
intval($item_id)
);
+
if(! $r)
killme();
@@ -39,7 +40,7 @@ function lockview_content(&$a) {
// as unknown specific recipients. The sender will have the visibility list and will fall through to the
// next section.
- echo '<li>' . translate_scope((! $item['public_policy']) ? PERMS_SPECIFIC : $item['public_policy']) . '</li>';
+ echo '<li>' . translate_scope((! $item['public_policy']) ? 'contacts' : $item['public_policy']) . '</li>';
killme();
}