View | Details | Raw Unified | Return to bug 7453
Collapse All | Expand All

(-)a/opac/opac-user.pl (-2 / +1 lines)
Lines 124-130 my @bordat; Link Here
124
$bordat[0] = $borr;
124
$bordat[0] = $borr;
125
125
126
# Warningdate is the date that the warning starts appearing
126
# Warningdate is the date that the warning starts appearing
127
if ( C4::Context->preference('NotifyBorrowerDeparture') &&
127
if ( $borr->{dateexpiry} && C4::Context->preference('NotifyBorrowerDeparture') &&
128
    Date_to_Days(Add_Delta_Days($warning_year,$warning_month,$warning_day,- C4::Context->preference('NotifyBorrowerDeparture'))) <
128
    Date_to_Days(Add_Delta_Days($warning_year,$warning_month,$warning_day,- C4::Context->preference('NotifyBorrowerDeparture'))) <
129
    Date_to_Days( $today_year, $today_month, $today_day ) ) 
129
    Date_to_Days( $today_year, $today_month, $today_day ) ) 
130
{
130
{
131
- 

Return to bug 7453