X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/ed1cd294e32647b117688b25a465889e4664fe03..d96a8550867531e92b109a0a675cd12ce1ff7843:/issue/index.php diff --git a/issue/index.php b/issue/index.php index 9a35df8..547547a 100644 --- a/issue/index.php +++ b/issue/index.php @@ -75,7 +75,7 @@ $sql = "SELECT $cols FROM issues i WHERE page = ?"; if (isset($_GET['open'])) { $sql .= ' AND closed IS NULL'; } -$sql .= ' ORDER BY closed IS NOT NULL, updated DESC'; +$sql .= ' ORDER BY updated DESC'; $query = $Db->query($sql, [$Page->handler]); if ($id == 'feed') { @@ -83,6 +83,12 @@ if ($id == 'feed') { } ob_start(); +$stats = $Db->query( + "SELECT count(*) AS total, count(closed) AS closed FROM issues" +)->fetch(); +printf("

%d lopende zaken, %s opgelost

\n", + $stats->total - $stats->closed, $stats->closed +); print '