prevent some warnings in the logs
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 31 Mar 2009 20:19:24 +0000 (20:19 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 31 Mar 2009 20:19:24 +0000 (20:19 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12741 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm

index da095d2..24a2c4e 100644 (file)
@@ -1414,7 +1414,7 @@ sub strip_ctrl_chars {
 sub get_copy_price {
        my($self, $e, $copy, $volume) = @_;
 
-       $copy->price(0) if $copy->price < 0;
+       $copy->price(0) if $copy->price and $copy->price < 0;
 
        return $copy->price if $copy->price and $copy->price > 0;