summaryrefslogtreecommitdiff
path: root/viewcategory.php
diff options
context:
space:
mode:
Diffstat (limited to 'viewcategory.php')
-rw-r--r--viewcategory.php10
1 files changed, 0 insertions, 10 deletions
diff --git a/viewcategory.php b/viewcategory.php
index a10afce..e10797a 100644
--- a/viewcategory.php
+++ b/viewcategory.php
@@ -39,17 +39,7 @@ if (!isset($_GET['id']) || !filter_var($_GET['id'], FILTER_VALIDATE_INT)) {
<th>Latest Post</th>
</tr>
<?php
- function cmp($a, $b) {
- $da = strtotime($a->date_lastpost);
- $db = strtotime($b->date_lastpost);
-
- if ($da == $db) return 0;
-
- return ($da > $db) ? -1 : 1;
- }
-
$threads = $current->get_threads($dbc);
- usort($threads, "cmp");
foreach ($threads as $thread) {
$latest_post = $thread->get_latest_post($dbc);