aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-08-11 20:18:34 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-08-11 20:18:34 -0700
commit80df97e73418e910ecc583200bf2a0207e25ffe7 (patch)
tree066feb13fbc74e6c5a7c6f5f2f992a9592e523da /include
parent8dd7fab38d0938f87bb3b696b946b18bb09e78af (diff)
downloadvolse-hubzilla-80df97e73418e910ecc583200bf2a0207e25ffe7.tar.gz
volse-hubzilla-80df97e73418e910ecc583200bf2a0207e25ffe7.tar.bz2
volse-hubzilla-80df97e73418e910ecc583200bf2a0207e25ffe7.zip
don't show '0' results, like notifications
Diffstat (limited to 'include')
-rw-r--r--include/widgets.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/widgets.php b/include/widgets.php
index cfecbdc66..0bed5ceb3 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -1011,7 +1011,7 @@ function widget_forums($arr) {
$o .= '<h3>' . t('Forums') . '</h3><ul class="nav nav-pills nav-stacked">';
foreach($r as $rr) {
- $o .= '<li><span class="pull-right">' . $rr['unseen'] . '</span><a href="network?f=&cid=' . $rr['abook_id'] . '" ><img src="' . $rr['xchan_photo_s'] . '" style="width: 16px; height: 16px;" /> ' . $rr['xchan_name'] . '</a></li>';
+ $o .= '<li><span class="pull-right">' . ((intval($rr['unseen'])) ? intval($rr['unseen']) : '') . '</span><a href="network?f=&cid=' . $rr['abook_id'] . '" ><img src="' . $rr['xchan_photo_s'] . '" style="width: 16px; height: 16px;" /> ' . $rr['xchan_name'] . '</a></li>';
}
$o .= '</ul></div>';
}