phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] todo/inc class.so.inc.php [Version-0_9_16-branch]


From: Dave Hall
Subject: [Phpgroupware-cvs] todo/inc class.so.inc.php [Version-0_9_16-branch]
Date: Mon, 24 Apr 2006 14:27:12 +0000

CVSROOT:        /sources/phpgroupware
Module name:    todo
Branch:         Version-0_9_16-branch
Changes by:     Dave Hall <address@hidden>      06/04/24 14:27:12

Modified files:
        inc            : class.so.inc.php 

Log message:
        little fix

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgroupware/todo/inc/class.so.inc.php.diff?only_with_tag=Version-0_9_16-branch&tr1=1.1.2.8.2.5&tr2=1.1.2.8.2.6&r1=text&r2=text

Patches:
Index: todo/inc/class.so.inc.php
diff -u todo/inc/class.so.inc.php:1.1.2.8.2.5 
todo/inc/class.so.inc.php:1.1.2.8.2.6
--- todo/inc/class.so.inc.php:1.1.2.8.2.5       Wed Dec 14 12:37:46 2005
+++ todo/inc/class.so.inc.php   Mon Apr 24 14:27:12 2006
@@ -14,7 +14,7 @@
        * Free Software Foundation; either version 2 of the License, or (at 
your  *
        * option) any later version.                                            
  *
        
\*************************************************************************/
-       /* $Id: class.so.inc.php,v 1.1.2.8.2.5 2005/12/14 12:37:46 skwashd Exp 
$ */
+       /* $Id: class.so.inc.php,v 1.1.2.8.2.6 2006/04/24 14:27:12 skwashd Exp 
$ */
 
        class so
        {
@@ -55,13 +55,13 @@
 
                        $query  = $this->db->db_addslashes($query); 
                        $order  = $this->db->db_addslashes($order);
-                       $sort   = $this->db->db_addslashes($sort);
+                       $sort = $sort == 'DESC' ? 'DESC' : 'ASC';
 
                        $type   = $this->type($tree);
 
                        if ($order)
                        {
-                               $ordermethod = ' ORDER BY ' . $order . ' ' . 
$sort;
+                               $ordermethod = " ORDER BY $order $sort";
                        }
                        else
                        {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]