mirror of
https://github.com/grocy/grocy.git
synced 2026-03-28 07:39:25 +01:00
Fixed PHP 8.1 deprecation notice
This commit is contained in:
parent
0229d187ae
commit
639ef0da5b
|
|
@ -49,7 +49,7 @@ class ChoresService extends BaseService
|
|||
$assignedUsers = [];
|
||||
foreach ($users as $user)
|
||||
{
|
||||
if (in_array($user->id, explode(',', $chore->assignment_config)))
|
||||
if (!empty($chore->assignment_config) && in_array($user->id, explode(',', $chore->assignment_config)))
|
||||
{
|
||||
$assignedUsers[] = $user;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user