From 1612421d7d21648e1b3a09e00df2ee37c1bd9be0 Mon Sep 17 00:00:00 2001 From: Thomas Johansen Date: Mon, 17 Mar 2014 13:55:23 +0100 Subject: [PATCH] Added check to see if not is FALSE --- includes/alma.user.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/alma.user.inc b/includes/alma.user.inc index d1f7738..893e271 100644 --- a/includes/alma.user.inc +++ b/includes/alma.user.inc @@ -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;