diff options
author | friendica <info@friendica.com> | 2014-08-28 04:04:38 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-08-28 04:04:38 -0700 |
commit | d0af6b501fa13c39abd5319e4fce80f3f22d6947 (patch) | |
tree | f81945429016efddb835839a818e0ad1f9ac89e1 /mod | |
parent | 5e5c6c90002908ed2052659a5fe13319c09883b0 (diff) | |
download | volse-hubzilla-d0af6b501fa13c39abd5319e4fce80f3f22d6947.tar.gz volse-hubzilla-d0af6b501fa13c39abd5319e4fce80f3f22d6947.tar.bz2 volse-hubzilla-d0af6b501fa13c39abd5319e4fce80f3f22d6947.zip |
really really really fix lockview - maybe
Diffstat (limited to 'mod')
-rw-r--r-- | mod/lockview.php | 5 |
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(); } |