summaryrefslogtreecommitdiff
path: root/inc/functions.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2010-11-03 19:16:21 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2010-11-03 19:16:21 +1100
commit0b50ef702f46441d151cba1dfd9c373352178e20 (patch)
tree1dded9c21acb18fbdb3a1570301b9111ee1387c0 /inc/functions.php
parentd36572df472f35191d9b8a3fbc89ad18663b0f29 (diff)
Simplified code/math.
Diffstat (limited to 'inc/functions.php')
-rw-r--r--inc/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/functions.php b/inc/functions.php
index 0cf78aa9..14adde4e 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -62,7 +62,7 @@
$res = mysql_query("SELECT COUNT(`id`) as `num` FROM `posts` WHERE `thread` IS NULL", $sql) or error(mysql_error($sql));
$arr = mysql_fetch_array($res);
- $count = floor((THREADS_PER_PAGE + $arr['num'] - 1) / (THREADS_PER_PAGE));
+ $count = floor((THREADS_PER_PAGE + $arr['num'] - 1) / THREADS_PER_PAGE);
$pages = Array();
for($x=0;$x<$count && $x<MAX_PAGES;$x++) {