From 1f8907258e6c81c946cf65f8eaa410e0115c10d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Lahmann?= <lahmann@users.noreply.github.com> Date: Tue, 21 Feb 2017 15:22:00 +0100 Subject: [PATCH] * fixes a php notice if changing password fails and no error message is given (#922) --- module/VuFind/src/VuFind/ILS/Driver/PAIA.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/VuFind/src/VuFind/ILS/Driver/PAIA.php b/module/VuFind/src/VuFind/ILS/Driver/PAIA.php index 0994fa2596a..062043d9344 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/PAIA.php +++ b/module/VuFind/src/VuFind/ILS/Driver/PAIA.php @@ -335,7 +335,9 @@ class PAIA extends DAIA isset($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 $details = [ 'success' => true, -- GitLab