Merge remote-tracking branch 'origin/new/bug_7453'

This commit is contained in:
Paul Poulain 2012-02-27 11:35:12 +01:00
commit 734c63222b
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ my @bordat;
$bordat[0] = $borr;
# Warningdate is the date that the warning starts appearing
if ( C4::Context->preference('NotifyBorrowerDeparture') &&
if ( $borr->{dateexpiry} && C4::Context->preference('NotifyBorrowerDeparture') &&
Date_to_Days(Add_Delta_Days($warning_year,$warning_month,$warning_day,- C4::Context->preference('NotifyBorrowerDeparture'))) <
Date_to_Days( $today_year, $today_month, $today_day ) )
{