Bad account expiration message when a user isn't, and no message when it is

When you try to hold a document for a non expired user, a warning tell you the account is expired, and when the account is expired there is no
message.
This patch do the inverse.

Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
This commit is contained in:
Nahuel Angelinetti 2008-11-10 10:58:40 +01:00 committed by Henri-Damien LAURENT
parent 5a1e844d10
commit 12b2e9b4f2
1 changed files with 3 additions and 1 deletions

View File

@ -115,8 +115,10 @@ if ($cardnumber) {
if ($expiry_date and $expiry_date ne '0000-00-00' and
Date_to_Days(split /-/,$date) > Date_to_Days(split /-/,$expiry_date)) {
$messages = $expiry = 1;
}else{
$expiry = 0;
}
# check if the borrower make the reserv in a different branch
if ( $borrowerinfo->{'branchcode'} ne C4::Context->userenv->{'branch'} ) {