Changeset 17597


Ignore:
Timestamp:
2008/09/07 05:05:20 (16 years ago)
Author:
Seasoft
Message:

SC_Query::setorder(), setgroupby() に空文字を渡すことで、解除可能に。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/SC_Query.php

    r17595 r17597  
    185185 
    186186    function setgroupby($str) { 
    187         $this->groupby = "GROUP BY " . $str; 
     187        if (strlen($str) == 0) { 
     188            $this->groupby = ''; 
     189        } else { 
     190            $this->groupby = "GROUP BY " . $str; 
     191        } 
    188192    } 
    189193 
     
    209213 
    210214    function setorder($str) { 
    211         $this->order = "ORDER BY " . $str; 
     215        if (strlen($str) == 0) { 
     216            $this->order = ''; 
     217        } else { 
     218            $this->order = "ORDER BY " . $str; 
     219        } 
    212220    } 
    213221 
Note: See TracChangeset for help on using the changeset viewer.