Skip to content

Commit

Permalink
Merge pull request #23 from Divergence/develop
Browse files Browse the repository at this point in the history
2.1.3
  • Loading branch information
hparadiz authored Jul 28, 2023
2 parents cb03593 + ec47968 commit 1814351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controllers/RecordsRequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ public function handleEditRequest(ActiveRecord $Record): ResponseInterface
if (in_array($_SERVER['REQUEST_METHOD'], ['POST','PUT'])) {
if ($this->responseBuilder === JsonBuilder::class) {
$_REQUEST = JSON::getRequestData();
if (is_array($_REQUEST['data'])) {
if (isset($_REQUEST['data']) && is_array($_REQUEST['data'])) {
$_REQUEST = $_REQUEST['data'];
}
}
Expand Down

0 comments on commit 1814351

Please sign in to comment.