Skip to content

Commit 1814351

Browse files
authored
Merge pull request #23 from Divergence/develop
2.1.3
2 parents cb03593 + ec47968 commit 1814351

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Controllers/RecordsRequestHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ public function handleEditRequest(ActiveRecord $Record): ResponseInterface
452452
if (in_array($_SERVER['REQUEST_METHOD'], ['POST','PUT'])) {
453453
if ($this->responseBuilder === JsonBuilder::class) {
454454
$_REQUEST = JSON::getRequestData();
455-
if (is_array($_REQUEST['data'])) {
455+
if (isset($_REQUEST['data']) && is_array($_REQUEST['data'])) {
456456
$_REQUEST = $_REQUEST['data'];
457457
}
458458
}

0 commit comments

Comments
 (0)