Module: appdb Branch: master Commit: 729df377f9cce65dd7cebced7ebf5887b1e7600f URL: http://source.winehq.org/git/appdb.git/?a=commit;h=729df377f9cce65dd7cebced7...
Author: Alexander Nicolaysen Sørnes alex@thehandofagony.com Date: Thu Oct 25 00:09:22 2007 +0200
application: Fix ordering of entries by id
---
include/application.php | 4 ++-- 1 files 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,