aboutsummaryrefslogtreecommitdiffstats
path: root/mod/apps.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/apps.php')
-rw-r--r--mod/apps.php14
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;