Tiny bug in 16714; fixing it prevents a useless logline in some cases
authorsenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 14 Jun 2010 17:07:38 +0000 (17:07 +0000)
committersenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 14 Jun 2010 17:07:38 +0000 (17:07 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16717 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 70330c1..e7210a0 100644 (file)
@@ -380,7 +380,7 @@ sub _recording_failure {
         );
     } else { # Otherwise, the problem is somewhat less severe:
         $logger->warn($msg);
-        $logger->warn("Payment: " . Dumper($payment));
+        $logger->warn("Payment: " . Dumper($payment)) if $payment;
         return $e->die_event;
     }
 }