issue: order by last update, changed on reply
[minimedit.git] / issue / index.php
index d8f9c261e65b877764dafca34e28488dc2e9cfa4..2c50624f9a7fc1cbc7fae406ce4fb65f76eea1a6 100644 (file)
@@ -39,7 +39,7 @@ if ($_POST) {
                $_POST = [];
 }
 
-$query = $Db->query('SELECT * FROM issues ORDER BY created DESC');
+$query = $Db->query('SELECT * FROM issues ORDER BY updated DESC');
 
 ob_start();
 print '<ul>';
@@ -48,7 +48,7 @@ while ($row = $query->fetch()) {
                "/$Page/{$row->id}/{$row->link}",
                sprintf($row->closed ? '<strike>%s</strike>' : '%s',
                        htmlspecialchars($row->subject)),
-               showdate(array_slice(preg_split('/\D/', $row->created), 0, 3))
+               showdate(array_slice(preg_split('/\D/', $row->updated), 0, 3))
        );
        print "</li>\n";
 }