diff options
author | Tobias Diekershoff <tobias.diekershoff@gmx.net> | 2011-06-09 10:20:47 +0200 |
---|---|---|
committer | Tobias Diekershoff <tobias.diekershoff@gmx.net> | 2011-06-09 10:20:47 +0200 |
commit | 7ffd0ee41a70d30cadf18032f655222911304b7c (patch) | |
tree | 8951d4ac7d5a8b1d27929742890914c8c57c23e0 /mod/apps.php | |
parent | 6f9fd92c2eabd1b26182e2f7157f35e44f94dc67 (diff) | |
parent | 9203b48527050b0b4a17120a95b2b3202842d56d (diff) | |
download | volse-hubzilla-7ffd0ee41a70d30cadf18032f655222911304b7c.tar.gz volse-hubzilla-7ffd0ee41a70d30cadf18032f655222911304b7c.tar.bz2 volse-hubzilla-7ffd0ee41a70d30cadf18032f655222911304b7c.zip |
Merge branch 'master' of git://github.com/friendika/friendika
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; |