Changeset 403 for trunk/export/export.php
- Timestamp:
- Mar 24, 2010, 8:18:48 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/export/export.php
r401 r403 39 39 } 40 40 41 function BuildQuery($Group, $Columns = ' `T`.*')42 { 43 $Query = 'SELECT * FROM (SELECT '.$Columns.',`User`.`Name` AS `UserName` FROM `'.$Group['TablePrefix'].'` AS `T`'.41 function BuildQuery($Group, $Columns = '') 42 { 43 $Query = 'SELECT * FROM (SELECT `T`.*, '.$Columns.'`User`.`Name` AS `UserName` FROM `'.$Group['TablePrefix'].'` AS `T`'. 44 44 ' JOIN `ExportUser` ON (`ExportUser`.`User`=`T`.`User`) AND (`ExportUser`.`Export`='.$this->Id.') '. 45 45 ' JOIN `User` ON `User`.`ID`=`T`.`User`'. … … 240 240 $I = $I + 1; 241 241 } 242 $Columns = substr($Columns, 0, -2);243 242 244 243 $Query = $this->BuildQuery($Group, $Columns);
Note:
See TracChangeset
for help on using the changeset viewer.