Dotclear

Changeset 126:2be2ac72171e for inc


Ignore:
Timestamp:
04/30/11 11:26:24 (14 years ago)
Author:
JC@…
Branch:
default
Children:
127:490adc7acabe, 128:70f2448f708a
Message:

dcLog fix for PgSql? (see http://dev.dotclear.org/2.0/ticket/1170 )

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.log.php

    r0 r126  
    8585          } 
    8686           
    87           if (!empty($params['order']) && !$count_only) { 
    88                $strReq .= 'ORDER BY '.$this->core->con->escape($params['order']).' '; 
    89           } else { 
    90                $strReq .= 'ORDER BY log_dt DESC '; 
     87          if (!$count_only) 
     88          { 
     89               if (!empty($params['order'])) { 
     90                    $strReq .= 'ORDER BY '.$this->core->con->escape($params['order']).' '; 
     91               } else { 
     92                    $strReq .= 'ORDER BY log_dt DESC '; 
     93               } 
    9194          } 
    9295           
Note: See TracChangeset for help on using the changeset viewer.

Sites map