summaryrefslogtreecommitdiff
path: root/tpl/account
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-06-20 22:29:00 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-06-20 22:29:00 +0200
commit5abf9dc5c437c3c0dc3408c3a583106fa6babcc2 (patch)
tree62fbce00283d176481c3c55f19cfa1cad227ce55 /tpl/account
parent42ab8ff48ca96d39bff5486a009fabb302e8ada5 (diff)
downloadBits-5abf9dc5c437c3c0dc3408c3a583106fa6babcc2.tar.gz
Bits-5abf9dc5c437c3c0dc3408c3a583106fa6babcc2.zip
minor bugfixes
Diffstat (limited to 'tpl/account')
-rw-r--r--tpl/account/list.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/tpl/account/list.php b/tpl/account/list.php
index 398ac99..a97606f 100644
--- a/tpl/account/list.php
+++ b/tpl/account/list.php
@@ -8,7 +8,11 @@ echo "<table>";
echo "<tr><th>Username</th><th>Notebook</th><th>Blog</th></tr>";
foreach($users as $u) {
echo '<tr><td>' . $u['name'] . '</td>';
- echo '<td><a href="user-notes-' . $u['id'] . '">' . $u['nbNotes'] . ' notes</a></td>';
+ if ($u['nbNotes'] > 0) {
+ echo '<td><a href="user-notes-' . $u['id'] . '">' . $u['nbNotes'] . ' notes</a></td>';
+ } else {
+ echo '<td>no notes</td>';
+ }
if ($u['nbPosts'] > 0) {
echo '<td><a href="index-blog-author-'.$u['id'].'">' . $u['nbPosts'] . ' posts</a></td>';
} else {