Changeset 621 for trunk/includes/global.php
- Timestamp:
- Dec 4, 2013, 1:25:44 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/global.php
r618 r621 563 563 $where .= ')'; 564 564 } 565 if ($sqlall <> '') { $sqlall .= ' UNION ALL ( '.$sql.$where.$groupby.' )';}566 else {$sqlall .= ' ( '.$sql.$where.$groupby.' )'; }567 }568 565 if ($SqlOK) { 569 $DbResult = $System->Database->query($sql all.' ORDER BY LENGTH(Orig) DESC');566 $DbResult = $System->Database->query($sql.$where.$groupby.' ORDER BY LENGTH(Orig) DESC'); 570 567 // echo ($sql.'|'.$where.'|'.$groupby); 571 568 while($Line = $DbResult->fetch_assoc()) … … 574 571 } 575 572 } 573 574 // if ($sqlall <> '') { $sqlall .= ' UNION ALL ( '.$sql.$where.$groupby.' )';} 575 // else {$sqlall .= ' ( '.$sql.$where.$groupby.' )'; } 576 } 576 577 return $buff; 577 578 }
Note:
See TracChangeset
for help on using the changeset viewer.