mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 20:26:42 +00:00
Fixed PHP 8.1 deprecation notice
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user