mirror of
https://github.com/grocy/grocy.git
synced 2026-07-23 07:54:59 -07:00
Removed no longer necessary explicit number parsing in ChoresApiController
This commit is contained in:
@@ -18,10 +18,9 @@ class ChoresApiController extends BaseApiController
|
||||
$requestBody = $this->GetParsedAndFilteredRequestBody($request);
|
||||
|
||||
$choreId = null;
|
||||
|
||||
if (array_key_exists('chore_id', $requestBody) && !empty($requestBody['chore_id']) && is_numeric($requestBody['chore_id']))
|
||||
{
|
||||
$choreId = intval($requestBody['chore_id']);
|
||||
$choreId = $requestBody['chore_id'];
|
||||
}
|
||||
|
||||
if ($choreId === null)
|
||||
|
||||
Reference in New Issue
Block a user