From bf5dd7d8d56b4596ad7b7b0a57e1e63284420c64 Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+studip@gmail.com>
Date: Tue, 21 Mar 2023 09:37:59 +0000
Subject: [PATCH] prevent warnings, fixes #2407

Closes #2407

Merge request studip/studip!1602
---
 app/controllers/admin/cronjobs/logs.php      | 2 +-
 app/controllers/admin/cronjobs/schedules.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/controllers/admin/cronjobs/logs.php b/app/controllers/admin/cronjobs/logs.php
index 516ef178606..5727a9b2f4d 100644
--- a/app/controllers/admin/cronjobs/logs.php
+++ b/app/controllers/admin/cronjobs/logs.php
@@ -29,7 +29,7 @@ class Admin_Cronjobs_LogsController extends AuthenticatedController
         if (empty($_SESSION['cronlog-filter'])) {
             $_SESSION['cronlog-filter'] = [
                 'where'  => '1',
-                'values' => [],
+                'values' => array_fill_keys(['status', 'schedule_id', 'task_id'], null),
             ];
         }
 
diff --git a/app/controllers/admin/cronjobs/schedules.php b/app/controllers/admin/cronjobs/schedules.php
index 93dc79399f8..5a1d12aeb70 100644
--- a/app/controllers/admin/cronjobs/schedules.php
+++ b/app/controllers/admin/cronjobs/schedules.php
@@ -29,7 +29,7 @@ class Admin_Cronjobs_SchedulesController extends AuthenticatedController
         if (empty($_SESSION['cronjob-filter'])) {
             $_SESSION['cronjob-filter'] = [
                 'where'  => '1',
-                'values' => [],
+                'values' => array_fill_keys(['type', 'status', 'task_id'], null),
             ];
         }
 
-- 
GitLab