Lines 230-236
if ($borrowernumber) {
Link Here
|
230 |
0 , $borrower->{'enrolmentperiod'}); |
230 |
0 , $borrower->{'enrolmentperiod'}); |
231 |
} |
231 |
} |
232 |
# if the expiry date is before today ie they have expired |
232 |
# if the expiry date is before today ie they have expired |
233 |
if ( $warning_year*$warning_month*$warning_day==0 |
233 |
if ( !$borrower->{'dateexpiry'} || $warning_year*$warning_month*$warning_day==0 |
234 |
|| Date_to_Days($today_year, $today_month, $today_day ) |
234 |
|| Date_to_Days($today_year, $today_month, $today_day ) |
235 |
> Date_to_Days($warning_year, $warning_month, $warning_day) ) |
235 |
> Date_to_Days($warning_year, $warning_month, $warning_day) ) |
236 |
{ |
236 |
{ |
Lines 238-244
if ($borrowernumber) {
Link Here
|
238 |
$template->param( |
238 |
$template->param( |
239 |
flagged => "1", |
239 |
flagged => "1", |
240 |
noissues => "1", |
240 |
noissues => "1", |
241 |
expired => format_date($borrower->{dateexpiry}), |
241 |
expired => "1", |
242 |
renewaldate => format_date("$renew_year-$renew_month-$renew_day") |
242 |
renewaldate => format_date("$renew_year-$renew_month-$renew_day") |
243 |
); |
243 |
); |
244 |
} |
244 |
} |