@@ -43,8 +43,7 @@ discard block |
||
| 43 | 43 | protected static function export() |
| 44 | 44 | { |
| 45 | 45 | $data = self::$exportDataAsDisplayed ? |
| 46 | - self::$data : |
|
| 47 | - self::select(self::$t['q']); |
|
| 46 | + self::$data : self::select(self::$t['q']); |
|
| 48 | 47 | $outColumns = $outHeader = []; |
| 49 | 48 | foreach (self::$cols as $c) { |
| 50 | 49 | if (isset($c[2]['sort']) && $c[2]['sort'] === false) { |
@@ -84,8 +83,7 @@ discard block |
||
| 84 | 83 | if (($output = fopen('php://output', 'w'))) { |
| 85 | 84 | foreach ($eData as $v) { |
| 86 | 85 | self::$export === 'CSV' ? |
| 87 | - fputcsv($output, $v) : |
|
| 88 | - fputs($output, implode("\t", array_map($escape, $v)) . "\r\n"); |
|
| 86 | + fputcsv($output, $v) : fputs($output, implode("\t", array_map($escape, $v)) . "\r\n"); |
|
| 89 | 87 | } |
| 90 | 88 | fclose($output); |
| 91 | 89 | } |