summaryrefslogtreecommitdiff
path: root/tpl
diff options
context:
space:
mode:
Diffstat (limited to 'tpl')
-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 {