From d0af6b501fa13c39abd5319e4fce80f3f22d6947 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 28 Aug 2014 04:04:38 -0700 Subject: really really really fix lockview - maybe --- mod/lockview.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mod') 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 '
  • ' . translate_scope((! $item['public_policy']) ? PERMS_SPECIFIC : $item['public_policy']) . '
  • '; + echo '
  • ' . translate_scope((! $item['public_policy']) ? 'contacts' : $item['public_policy']) . '
  • '; killme(); } -- cgit v1.2.3