diff --git a/app/Http/Controllers/ReportController.php b/app/Http/Controllers/ReportController.php index dc6cf73..7077ce6 100644 --- a/app/Http/Controllers/ReportController.php +++ b/app/Http/Controllers/ReportController.php @@ -34,9 +34,9 @@ class ReportController extends BaseController public function spaceReport($year, $month) { $reportData = DB::select("SELECT * FROM storage WHERE tenant = ".(int)session("current_tenant_id")." AND `year` = ".(int)$year." AND `month` = ".(int)$month.";"); - $report = "year;month;day;hour;size\n"; + $report = "year;month;day;hour;gallery;size\n"; foreach ($reportData as $reportLine) { - $report .= $reportLine->year.";".$reportLine->month.";".$reportLine->day.";".$reportLine->hour.";".$reportLine->size."\n"; + $report .= $reportLine->year.";".$reportLine->month.";".$reportLine->day.";".$reportLine->hour.";".$reportLine->gallery.";"$reportLine->size."\n"; } $res = new Response();