moved log line
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 20 Sep 2006 14:20:40 +0000 (14:20 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 20 Sep 2006 14:20:40 +0000 (14:20 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6153 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Circ/HoldNotify.pm

index 66751d5..2f5c0eb 100644 (file)
@@ -127,12 +127,12 @@ sub send_email_notify {
                return 0;
        }
 
-       $logger->info("hold_notify: attempting email notify on hold ".$self->hold->id);
-
        return OpenILS::Event->new('PATRON_NO_EMAIL_ADDRESS')
                unless $self->patron->email and
                $self->patron->email =~ /.+\@.+/; # see if it's remotely email-esque
 
+       $logger->info("hold_notify: attempting email notify on hold ".$self->hold->id);
+
        my $sclient = OpenSRF::Utils::SettingsClient->new;
        $self->settings_client($sclient);
        my $template = $sclient->config_value('email_notify', 'template');