Skip to content

Commit

Permalink
Added check to see if not is FALSE
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Johansen committed Mar 17, 2014
1 parent 7dbab31 commit 1612421
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/alma.user.inc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ function alma_user_authenticate($uid, $pass) {

try {
$res = alma_client_invoke('get_patron_info', $uid, $pass, TRUE);
$return['success'] = TRUE;
if ($res) {
$return['success'] = TRUE;
}
}
catch (Exception $e) {
return $return;
Expand Down

0 comments on commit 1612421

Please sign in to comment.