diff options
author | Friendika <info@friendika.com> | 2011-06-08 21:43:32 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-06-08 21:43:32 -0700 |
commit | dea721a3f866956e0d0b86316679e05498b1d81c (patch) | |
tree | f3a46827c0cd0a967192d4022323394b36949ee5 /mod/apps.php | |
parent | df8ac668b800ecf64ab2c240678eb87b225cb513 (diff) | |
download | volse-hubzilla-dea721a3f866956e0d0b86316679e05498b1d81c.tar.gz volse-hubzilla-dea721a3f866956e0d0b86316679e05498b1d81c.tar.bz2 volse-hubzilla-dea721a3f866956e0d0b86316679e05498b1d81c.zip |
minor fixes to apps (don't show notes if not logged in) and photos (tag delete link is leaking to unauthorised users)
Diffstat (limited to 'mod/apps.php')
-rw-r--r-- | mod/apps.php | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/mod/apps.php b/mod/apps.php index 58752de32..f25722df7 100644 --- a/mod/apps.php +++ b/mod/apps.php @@ -5,10 +5,20 @@ function apps_content(&$a) { $o .= '<h3>' . t('Applications') . '</h3>'; - $o .= '<div class="app-title"><a href="notes">' . t('Private Notes') . '</a></div>'; + $apps = false; - if($a->apps) + if(local_user()) { + $apps = true; + $o .= '<div class="app-title"><a href="notes">' . t('Private Notes') . '</a></div>'; + } + + if($a->apps) { + $apps = true; $o .= $a->apps; + } + + if(! $apps) + notice( t('No installed applications.') . EOL); return $o; |