Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Commit

Permalink
Update Vtiger.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Clystnet authored May 30, 2018
1 parent 0072155 commit 39c4ce9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Vtiger.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ protected function sessionid()
]);

// decode the response
$login_result = json_decode($response->getBody()->getContents());
$login_result = json_decode($response->getBody()->getContents());

// If api login failed
// If api login failed
if($response->getStatusCode() !== 200 || !$login_result->success) {

$keep = $this->retry;
Expand All @@ -97,9 +97,9 @@ protected function sessionid()
}

return json_encode(array(
'success' => false,
'message' => $login_result->error->message
));
'success' => false,
'message' => $login_result->error->message
));
}

// login ok so get sessionid
Expand Down

0 comments on commit 39c4ce9

Please sign in to comment.