summaryrefslogtreecommitdiff
path: root/forum
diff options
context:
space:
mode:
Diffstat (limited to 'forum')
-rw-r--r--forum/utils/view.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/forum/utils/view.php b/forum/utils/view.php
index 01e8b6a..9ff3143 100644
--- a/forum/utils/view.php
+++ b/forum/utils/view.php
@@ -25,7 +25,7 @@ echo "</div>\n";
$forums = new Forums($FORUMS_DIR . "/forums.xml");
if($action == "addforum") {
- $newfid = 0;
+ $newfid = 1;
while($forums->getForum($newfid)) $newfid++;
$forums->add(new Forum($newfid, $title));