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