Skip to content
Snippets Groups Projects
Commit 03d19bf7 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Sort criteria

parent 118ae7e8
No related branches found
No related tags found
No related merge requests found
......@@ -43,8 +43,8 @@ if ($page == -1) { $page = 0; }
$offset = $conf->liste_limit * $page;
$pageprev = $page - 1;
$pagenext = $page + 1;
if (! $sortfield) $sortfield="p.titre";
if (! $sortorder) $sortorder="ASC";
if (! $sortfield) $sortfield="p.date_fin";
if (! $sortorder) $sortorder="DESC";
if ($page < 0) {
$page = 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment