Ignore:
Timestamp:
Mar 24, 2010, 8:18:48 AM (15 years ago)
Author:
george
Message:
  • Opraveno: Export DBC souborů
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/export/export.php

    r401 r403  
    3939  }
    4040 
    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`'.
    4444    ' JOIN `ExportUser` ON (`ExportUser`.`User`=`T`.`User`) AND (`ExportUser`.`Export`='.$this->Id.') '.
    4545    ' JOIN `User` ON `User`.`ID`=`T`.`User`'.
     
    240240          $I = $I + 1;
    241241        }
    242         $Columns = substr($Columns, 0, -2);
    243242
    244243        $Query = $this->BuildQuery($Group, $Columns);
Note: See TracChangeset for help on using the changeset viewer.