Sort article dates as int when presenting last article date in section display.
This commit is contained in:
parent
631930ea39
commit
5aef1c12a9
|
@ -658,7 +658,7 @@ function groups_show($gruppen)
|
|||
$database = $spooldir . '/articles-overview.db3';
|
||||
$table = 'overview';
|
||||
$overview_dbh = overview_db_open($database);
|
||||
$overview_query = $overview_dbh->prepare('SELECT * FROM overview WHERE newsgroup=:newsgroup ORDER BY date DESC LIMIT 2');
|
||||
$overview_query = $overview_dbh->prepare('SELECT * FROM overview WHERE newsgroup=:newsgroup ORDER BY CAST(date AS int) DESC LIMIT 2');
|
||||
$overview_query->execute([
|
||||
'newsgroup' => $g->name
|
||||
]);
|
||||
|
|
Loading…
Reference in New Issue