diff --git a/app/Http/Controllers/ExportController.php b/app/Http/Controllers/ExportController.php index 61caf63d9c..9006b809d0 100644 --- a/app/Http/Controllers/ExportController.php +++ b/app/Http/Controllers/ExportController.php @@ -94,6 +94,7 @@ public function devices(Request $request, $idevents = NULL, $idgroups = NULL) fputcsv($file, $columns); foreach ($all_devices as $device) { + set_time_limit(60); if (User::userCanSeeEvent($me, $event)) { $wasteImpact = 0; $co2Diverted = 0; @@ -143,6 +144,7 @@ public function devices(Request $request, $idevents = NULL, $idgroups = NULL) $party = null; foreach ($all_devices as $device) { + set_time_limit(60); $party = !$party || $party->idevents != $device->event ? Party::findOrFail($device->event) : $party; if (User::userCanSeeEvent($me, $party)) {