diff options
author | Mario <mario@mariovavti.com> | 2018-09-23 20:54:36 +0200 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2018-09-23 20:54:36 +0200 |
commit | e735220691366fb29276dbc3f47ad0347c40aaf5 (patch) | |
tree | 96356b53d5ccece30f9ed329ccfbca5d10280cd5 /Zotlabs/Module | |
parent | 9b7c6e96f79ef1b2dc9d71d18db816ffd99f644c (diff) | |
download | volse-hubzilla-e735220691366fb29276dbc3f47ad0347c40aaf5.tar.gz volse-hubzilla-e735220691366fb29276dbc3f47ad0347c40aaf5.tar.bz2 volse-hubzilla-e735220691366fb29276dbc3f47ad0347c40aaf5.zip |
only explain how to select a channel if there are channels to select
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Manage.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Manage.php b/Zotlabs/Module/Manage.php index ea24bbf61..20d5b0449 100644 --- a/Zotlabs/Module/Manage.php +++ b/Zotlabs/Module/Manage.php @@ -129,7 +129,7 @@ class Manage extends \Zotlabs\Web\Controller { } } - + $r = q("select count(channel_id) as total from channel where channel_account_id = %d and channel_removed = 0", intval(get_account_id()) ); @@ -170,7 +170,7 @@ class Manage extends \Zotlabs\Web\Controller { '$header' => t('Channel Manager'), '$msg_selected' => t('Current Channel'), '$selected' => local_channel(), - '$desc' => t('Switch to one of your channels by selecting it.'), + '$desc' => ((count($channels) > 1 || $delegates) ? t('Switch to one of your channels by selecting it.') : ''), '$msg_default' => t('Default Channel'), '$msg_make_default' => t('Make Default'), '$create' => $create, |