Skip to content
Snippets Groups Projects
Commit 1f890725 authored by André Lahmann's avatar André Lahmann Committed by Demian Katz
Browse files

* fixes a php notice if changing password fails and no error message is given (#922)

parent 6e94cbcb
No related merge requests found
...@@ -335,7 +335,9 @@ class PAIA extends DAIA ...@@ -335,7 +335,9 @@ class PAIA extends DAIA
isset($array_response['error_description']) isset($array_response['error_description'])
? $array_response['error_description'] : ' ' ? $array_response['error_description'] : ' '
]; ];
} elseif ($array_response['patron'] === $post_data['patron']) { } elseif (isset($array_response['patron'])
&& $array_response['patron'] === $post_data['patron']
) {
// on success patron_id is returned // on success patron_id is returned
$details = [ $details = [
'success' => true, 'success' => true,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment