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); }