diff --git a/src/Jobs/GenerateCSVJob.php b/src/Jobs/GenerateCSVJob.php index 3649251..b34e4d0 100644 --- a/src/Jobs/GenerateCSVJob.php +++ b/src/Jobs/GenerateCSVJob.php @@ -410,7 +410,7 @@ protected function initRequest() Injector::inst()->registerService($request); } - if (!Controller::has_curr()) { + if (!Controller::curr()) { $controller = new Controller(); $controller->setRequest(Injector::inst()->get(HTTPRequest::class)); $controller->pushCurrent();