From 729df377f9cce65dd7cebced7ebf5887b1e7600f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Thu, 25 Oct 2007 00:09:22 +0200 Subject: [PATCH] application: Fix ordering of entries by id --- include/application.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/application.php b/include/application.php index 2e5291d..8daf89e 100644 --- a/include/application.php +++ b/include/application.php @@ -909,7 +909,7 @@ class Application { if(!$bRejected) return FALSE; - $sQuery .= " AND appFamily.submitterId = '?' ORDER BY '?'$sLimit"; + $sQuery .= " AND appFamily.submitterId = '?' ORDER BY ?$sLimit"; if($sLimit) { $hResult = query_parameters($sQuery, $sQueued, @@ -922,7 +922,7 @@ class Application { } } else { - $sQuery .= " ORDER BY '?'$sLimit"; + $sQuery .= " ORDER BY ?$sLimit"; if($sLimit) { $hResult = query_parameters($sQuery, $sQueued, $sOrderBy,