From 0b50ef702f46441d151cba1dfd9c373352178e20 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Wed, 3 Nov 2010 19:16:21 +1100 Subject: [PATCH] Simplified code/math. --- inc/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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