aboutsummaryrefslogtreecommitdiffstats
path: root/include/widgets.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-03-30 14:31:55 +0200
committerMario Vavti <mario@mariovavti.com>2016-03-30 14:31:55 +0200
commit5462453bf2bde50166c68f90b08d24826dd07ba8 (patch)
tree8951f8c1f38cb9847419fce8874a89325da6fe54 /include/widgets.php
parente4f360505466d4701ea4ac8f8bec18fac5b4c3ec (diff)
downloadvolse-hubzilla-5462453bf2bde50166c68f90b08d24826dd07ba8.tar.gz
volse-hubzilla-5462453bf2bde50166c68f90b08d24826dd07ba8.tar.bz2
volse-hubzilla-5462453bf2bde50166c68f90b08d24826dd07ba8.zip
some work on mod chat
Diffstat (limited to 'include/widgets.php')
-rw-r--r--include/widgets.php15
1 files changed, 9 insertions, 6 deletions
diff --git a/include/widgets.php b/include/widgets.php
index ac0b6a84f..2aa3dccf1 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -797,12 +797,15 @@ function widget_chatroom_list($arr) {
require_once("include/chat.php");
$r = chatroom_list($a->profile['profile_uid']);
- return replace_macros(get_markup_template('chatroomlist.tpl'), array(
- '$header' => t('Chat Rooms'),
- '$baseurl' => z_root(),
- '$nickname' => $a->profile['channel_address'],
- '$items' => $r,
- ));
+
+ if($r) {
+ return replace_macros(get_markup_template('chatroomlist.tpl'), array(
+ '$header' => t('Chat Rooms'),
+ '$baseurl' => z_root(),
+ '$nickname' => $a->profile['channel_address'],
+ '$items' => $r,
+ ));
+ }
}
function widget_bookmarkedchats($arr) {