Skip to content

Commit

Permalink
[rector] Automated updates generated by rector silverstripe configura…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
actions-user committed Aug 6, 2024
1 parent 13d7126 commit 7421d3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controllers/ChimpleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ public function subscribe($data = [], Form $form = null)

// handle a successful subscription
$response = $this->handleSuccess(200, $form);
if($response && ($response instanceof HTTPResponse)) {
if($response instanceof \SilverStripe\Control\HTTPResponse && ($response instanceof HTTPResponse)) {
// handle responses for e.g XHR
return $response;
} else {
Expand All @@ -450,7 +450,7 @@ public function subscribe($data = [], Form $form = null)

// Handle subscribe attempt failures
$response = $this->handleError($error_code, $error_message, $form);
if($response && ($response instanceof HTTPResponse)) {
if($response instanceof \SilverStripe\Control\HTTPResponse && ($response instanceof HTTPResponse)) {
// handle XHR error responses
return $response;
} else {
Expand Down

0 comments on commit 7421d3e

Please sign in to comment.