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 Jun 13, 2018
1 parent a32917a commit 24ff072
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/Vtiger.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,10 @@ public function login($json)
}
}

if ($response->me) {
return json_encode(array(
'success' => false,
'message' => $login_result->error->message
));
}
return json_encode(array(
'success' => false,
'message' => $login_result->error->message
));
} else {
// login ok so get sessionid and update our session
$sessionid = $login_result->result->sessionName;
Expand Down

0 comments on commit 24ff072

Please sign in to comment.