Skip to content

Commit

Permalink
Update SuluHubScoreFormSender.php
Browse files Browse the repository at this point in the history
  • Loading branch information
tommysonsylverstone authored Apr 14, 2022
1 parent ab889d4 commit cc60801
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EventSubscriber/SuluHubScoreFormSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public function hubAPI(FormSavePostEvent $event): void
if ($form) {
$apiCall = new HubScoreApi($this->id, $this->pwd, $this->client);
$response = $apiCall->getResponse();
$login_token = $response->getLoginToken();
if ($response->statusCode() === 200 && $login_token) {
$login_token = $apiCall->getLoginToken();
if ($response->getStatusCode() === 200 && $login_token) {
$apiCall->sendForm($this->client, $form);
}
/* $after_connect_statusCode = $after_connect_response->getStatusCode(); */
Expand Down

0 comments on commit cc60801

Please sign in to comment.