summaryrefslogtreecommitdiff
path: root/inc/mod.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/mod.php')
-rw-r--r--inc/mod.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/inc/mod.php b/inc/mod.php
index 200ffa20..b5e773f5 100644
--- a/inc/mod.php
+++ b/inc/mod.php
@@ -85,11 +85,11 @@
}
// Generates a <ul> element with a list of linked
- // boards and their subtitles.
+ // boards and their subtitles. (without the <ul> opening and ending tags)
function ulBoards() {
global $mod;
- $body = '<ul>';
+ $body = '';
// List of boards
$boards = listBoards();
@@ -106,10 +106,10 @@
'</li>';
}
- if($mod['type'] == MOD_ADMIN) {
+ if($mod['type'] >= MOD_NEWBOARD) {
$body .= '<li style="margin-top:15px;"><a href="?/new"><strong>Create new board</strong></a></li>';
}
- return $body . '</ul>';
+ return $body;
}
function form_newBoard() {