Skip to content

Commit

Permalink
[rector] Automated updates generated by rector configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesDPC authored and github-actions[bot] committed Aug 7, 2024
1 parent 40c6c20 commit 565db3f
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 @@ -437,7 +437,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 @@ -460,7 +460,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 565db3f

Please sign in to comment.