[interchange-cvs] interchange - heins modified lib/Vend/Interpolate.pm

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Mon Dec 12 13:15:29 EST 2005


User:      heins
Date:      2005-12-12 18:15:29 GMT
Modified:  lib/Vend Interpolate.pm
Log:
* Prevent crash when $::Discounts not defined.

Revision  Changes    Path
2.265     +3 -3      interchange/lib/Vend/Interpolate.pm


rev 2.265, prev_rev 2.264
Index: Interpolate.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Interpolate.pm,v
retrieving revision 2.264
retrieving revision 2.265
diff -u -r2.264 -r2.265
--- Interpolate.pm	3 Dec 2005 19:30:43 -0000	2.264
+++ Interpolate.pm	12 Dec 2005 18:15:29 -0000	2.265
@@ -1,6 +1,6 @@
 # Vend::Interpolate - Interpret Interchange tags
 # 
-# $Id: Interpolate.pm,v 2.264 2005/12/03 19:30:43 mheins Exp $
+# $Id: Interpolate.pm,v 2.265 2005/12/12 18:15:29 mheins Exp $
 #
 # Copyright (C) 2002-2005 Interchange Development Group
 # Copyright (C) 1996-2002 Red Hat, Inc.
@@ -28,7 +28,7 @@
 require Exporter;
 @ISA = qw(Exporter);
 
-$VERSION = substr(q$Revision: 2.264 $, 10);
+$VERSION = substr(q$Revision: 2.265 $, 10);
 
 @EXPORT = qw (
 
@@ -4991,7 +4991,7 @@
 			||= {} if $Vend::Cfg->{DiscountSpacesOn};
 	}
 
-	return $price unless $extra || %$::Discounts;
+	return $price unless $extra or $::Discounts && %$::Discounts;
 
 	$quantity = $item->{quantity};
 








More information about the interchange-cvs mailing list