From 8bf43618eea4b54ba3c45d18aef093373449c965 Mon Sep 17 00:00:00 2001 From: claire <102092516+dragonflyfree@users.noreply.github.com> Date: Thu, 31 Aug 2023 14:06:52 +1000 Subject: [PATCH] Fix taskweek.php undefined variable warnings --- system/modules/task/actions/taskweek.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/modules/task/actions/taskweek.php b/system/modules/task/actions/taskweek.php index 6179171d8..f5100a501 100755 --- a/system/modules/task/actions/taskweek.php +++ b/system/modules/task/actions/taskweek.php @@ -78,9 +78,9 @@ function taskweek_ALL(Web &$w) } // load the search filters - $a = Html::select("assignee", $members, Request::mixed('assignee')); + $a = Html::select("assignee", $members ?? [], Request::mixed('assignee')); $w->ctx("assignee", $a); - $taskgroups = Html::select("taskgroup", $group, Request::mixed('taskgroup')); + $taskgroups = Html::select("taskgroup", $group ?? [], Request::mixed('taskgroup')); $w->ctx("taskgroups", $taskgroups); }