summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod.php b/mod.php
index e6b52060..e822e6ba 100644
--- a/mod.php
+++ b/mod.php
@@ -166,7 +166,7 @@
if(!openBoard($boardName))
error(ERROR_NOBOARD);
- $page = index($matches[2] == FILE_INDEX ? 1 : $matches[2], true);
+ $page = index(empty($matches[2]) || $matches[2] == FILE_INDEX ? 1 : $matches[2], true);
$page['pages'] = getPages(true);
$page['mod'] = true;