diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 09c0178..17cc575 100644 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -105,9 +105,7 @@ final class ApiController extends Controller $task->type = TaskType::HIDDEN; $task->unit ??= $this->app->unitId; - $report = new Report($task); - - return $report; + return new Report($task); } /** diff --git a/Theme/Backend/report-view.tpl.php b/Theme/Backend/report-view.tpl.php index 27c0219..ff64194 100644 --- a/Theme/Backend/report-view.tpl.php +++ b/Theme/Backend/report-view.tpl.php @@ -37,17 +37,17 @@ echo $this->data['nav']->render(); ?>