Changeset 17597
- Timestamp:
- 2008/09/07 05:05:20 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/SC_Query.php
r17595 r17597 185 185 186 186 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 } 188 192 } 189 193 … … 209 213 210 214 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 } 212 220 } 213 221
Note: See TracChangeset
for help on using the changeset viewer.