From 3e9b05492459ef8f86d1fc900f98290c75c66342 Mon Sep 17 00:00:00 2001 From: djfiander Date: Sat, 27 May 2006 11:30:23 +0000 Subject: [PATCH] Get the test right for checking the patron password in handle_patron_enable() --- Sip/MsgType.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sip/MsgType.pm b/Sip/MsgType.pm index 1c1e6ba..fb42f00 100644 --- a/Sip/MsgType.pm +++ b/Sip/MsgType.pm @@ -1160,7 +1160,7 @@ sub handle_patron_enable { $resp .= add_field(FID_VALID_PATRON_PWD, 'N'); } else { # valid patron - if (defined($patron_pwd) && !$patron->check_password($patron_pwd)) { + if (!defined($patron_pwd) || !$patron->check_password($patron_pwd)) { # Don't enable the patron if there was an invalid password $status = $patron->enable; } -- 2.11.0