HomeHelpTrac

Changeset 13134


Ignore:
Timestamp:
11/03/09 02:42:53 (2 years ago)
Author:
Alexander Ermashev
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/inc/classes/BxDolCmtsQuery.php

    r13070 r13134  
    3535            $sJoin = "LEFT JOIN {$this->_sTableTrack} AS `r` ON (`r`.`cmt_system_id` = ".$this->_aSystem['system_id']." AND `r`.`cmt_id` = `c`.`cmt_id` AND `r`.`cmt_rate_author_id` = $iAuthorId)"; 
    3636        }        
    37                  
     37 
    3838        $a = $this->getAll("SELECT  
    3939                $sFields 
     
    5353            $sJoin 
    5454            WHERE `c`.`cmt_object_id` = '$iId' AND `c`.`cmt_parent_id` = '$iCmtParentId' 
    55             ORDER BY `c`.`cmt_time` " . ('ASC' == $sCmtOrder ? 'ASC' : 'DESC') . ($iCount != -1 ? ' LIMIT ' . $iStart . ', ' . $iCount : '')); 
     55            ORDER BY `c`.`cmt_time` " . ( strcasecmp('ASC', $sCmtOrder) ? 'ASC' : 'DESC') . ($iCount != -1 ? ' LIMIT ' . $iStart . ', ' . $iCount : '')); 
    5656 
    5757        //LEFT JOIN `media` AS `m` ON (`m`.`med_id` = `p`.`Avatar` AND `m`.`med_status` = 'active') 
Note: See TracChangeset for help on using the changeset viewer.