This commit is contained in:
Kekskurse 2021-01-21 15:51:49 +01:00
parent 68199b5a1f
commit a0037a4bc3

View file

@ -36,7 +36,7 @@ class ReportController extends BaseController
$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;gallery;size\n";
foreach ($reportData as $reportLine) {
$report .= $reportLine->year.";".$reportLine->month.";".$reportLine->day.";".$reportLine->hour.";".$reportLine->gallery.";"$reportLine->size."\n";
$report .= $reportLine->year.";".$reportLine->month.";".$reportLine->day.";".$reportLine->hour.";".$reportLine->gallery.";".$reportLine->size."\n";
}
$res = new Response();