application: Fix ordering of entries by id

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-10-25 00:09:22 +02:00
committed by Chris Morgan
parent c71456d159
commit 729df377f9

View File

@@ -909,7 +909,7 @@ class Application {
if(!$bRejected) if(!$bRejected)
return FALSE; return FALSE;
$sQuery .= " AND appFamily.submitterId = '?' ORDER BY '?'$sLimit"; $sQuery .= " AND appFamily.submitterId = '?' ORDER BY ?$sLimit";
if($sLimit) if($sLimit)
{ {
$hResult = query_parameters($sQuery, $sQueued, $hResult = query_parameters($sQuery, $sQueued,
@@ -922,7 +922,7 @@ class Application {
} }
} else } else
{ {
$sQuery .= " ORDER BY '?'$sLimit"; $sQuery .= " ORDER BY ?$sLimit";
if($sLimit) if($sLimit)
{ {
$hResult = query_parameters($sQuery, $sQueued, $sOrderBy, $hResult = query_parameters($sQuery, $sQueued, $sOrderBy,