mirror of
https://github.com/grocy/grocy.git
synced 2026-04-09 14:06:16 +02: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 = [];
|
$assignedUsers = [];
|
||||||
foreach ($users as $user)
|
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;
|
$assignedUsers[] = $user;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user