Alexander Nicolaysen Sørnes : application: Fix ordering of entries by id

Chris Morgan cmorgan at winehq.org
Wed Oct 24 20:19:25 CDT 2007


Module: appdb
Branch: master
Commit: 729df377f9cce65dd7cebced7ebf5887b1e7600f
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=729df377f9cce65dd7cebced7ebf5887b1e7600f

Author: Alexander Nicolaysen Sørnes <alex at 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,




More information about the wine-cvs mailing list