Skip to content

Commit

Permalink
Fixed undefined variable in alma client when updating e-mail address
Browse files Browse the repository at this point in the history
  • Loading branch information
cableman committed Jul 22, 2011
1 parent d127ab8 commit 899c8be
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion alma.user.inc
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function alma_user_profile_form_submit($form, $form_state) {

// Update e-mail address.
if ($orig_settings['email'] == TRUE && ($form['account']['mail']['#default_value'] !== $changed_settings['mail'])) {
alma_client_invoke('change_email_address', $creds['name'], $creds['pass'], $orig_settings['email'], $changed_settings['mail']);
alma_client_invoke('change_email_address', $creds['name'], $creds['pass'], $form['account']['mail']['#default_value'], $changed_settings['mail']);
$updated = TRUE;
}

Expand Down
3 changes: 0 additions & 3 deletions lib/AlmaClient/AlmaClient.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -613,9 +613,6 @@ public function change_email_address($borr_card, $pin_code, $email_id, $new_emai
'address' => $new_email,
);

if ($new_number) {
$params['localCode'] = $new_number;
}
$doc = $this->request('patron/email/change', $params);
return TRUE;
}
Expand Down

0 comments on commit 899c8be

Please sign in to comment.