summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2010-12-16 21:42:31 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2010-12-16 21:42:31 +1100
commita896abbd667fb8d1cb2f04be34a7a1a9daae6626 (patch)
tree652e387634b624c9468e75de6c588fe59d25604a /mod.php
parent22641bdc58909485cfcd9c05e4ac4f231022fe6f (diff)
Fixed bug causing errors when visiting a board index in a certain way
Diffstat (limited to 'mod.php')
-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;