[interchange-cvs] [SCM] Interchange branch, master, updated. a155aacf08267af49f5d4e3128985b1e3fecb3af

Stefan Hornburg interchange-cvs at icdevgroup.org
Mon Jun 22 19:54:37 UTC 2009


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Interchange".

The branch, master has been updated
       via  a155aacf08267af49f5d4e3128985b1e3fecb3af (commit)
       via  d5e8a2c48df72e8b0bf81aa4b8bf335ae18773b2 (commit)
      from  fe182d93b4741210ca1511bdeb03d2c51cc87097 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a155aacf08267af49f5d4e3128985b1e3fecb3af
Merge: d5e8a2c48df72e8b0bf81aa4b8bf335ae18773b2 fe182d93b4741210ca1511bdeb03d2c51cc87097
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date:   Mon Jun 22 21:54:31 2009 +0200

    Merge branch 'master' of ssh://racke@git.icdevgroup.org/var/git/interchange

commit d5e8a2c48df72e8b0bf81aa4b8bf335ae18773b2
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date:   Mon Jun 22 21:33:56 2009 +0200

    fixed crash occuring with empty AutoModifier

-----------------------------------------------------------------------

Summary of changes and diff:
 lib/Vend/Cart.pm |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/lib/Vend/Cart.pm b/lib/Vend/Cart.pm
index 73d067c..88bf42c 100644
--- a/lib/Vend/Cart.pm
+++ b/lib/Vend/Cart.pm
@@ -307,10 +307,12 @@ sub toss_cart {
 			  }
 			} # MAX_QUANTITY
 
-			for(@{$Vend::Cfg->{AutoModifier}}) {
-				next unless /^!/;
-				# Second passed parameter indicates it is recalculation not initial load
-				Vend::Order::auto_modifier($item, 1);
+			if ($Vend::Cfg->{AutoModifier}) {
+				for(@{$Vend::Cfg->{AutoModifier}}) {
+					next unless /^!/;
+					# Second passed parameter indicates it is recalculation not initial load
+					Vend::Order::auto_modifier($item, 1);
+				}
 			}
 
 			$total_quantity{$item->{code}} += $item->{quantity};


hooks/post-receive
-- 
Interchange



More information about the interchange-cvs mailing list