Bug fix for page links
This commit is contained in:
parent
aab95da24d
commit
ab5429dfc4
@ -135,7 +135,7 @@
|
|||||||
|
|
||||||
$pages = Array();
|
$pages = Array();
|
||||||
for($x=0;$x<$count && $x<MAX_PAGES;$x++) {
|
for($x=0;$x<$count && $x<MAX_PAGES;$x++) {
|
||||||
$pages[] = Array('num' => $x+1, 'link' => $x==0 ? ROOT . $board['dir'] . FILE_INDEX : ROOT . sprintf(FILE_PAGE, $x+1));
|
$pages[] = Array('num' => $x+1, 'link' => $x==0 ? ROOT . $board['dir'] . FILE_INDEX : ROOT . $board['dir'] . sprintf(FILE_PAGE, $x+1));
|
||||||
}
|
}
|
||||||
|
|
||||||
mysql_free_result($res);
|
mysql_free_result($res);
|
||||||
|
Loading…
Reference in New Issue
Block a user