From 1262c20d31223bc386c0077c96291c2223520ac1 Mon Sep 17 00:00:00 2001 From: Martin Kamerbeek Date: Fri, 10 Dec 2004 09:32:47 +0000 Subject: [PATCH] Fixed a bug where having one payment plugin would crash the commerce part. --- lib/WebGUI/Config.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/WebGUI/Config.pm b/lib/WebGUI/Config.pm index be0bca6d1..64d2b1f6c 100644 --- a/lib/WebGUI/Config.pm +++ b/lib/WebGUI/Config.pm @@ -129,6 +129,9 @@ sub readConfig { if (ref $data{wobjects} ne "ARRAY"){ $data{wobjects} = [$data{wobjects}]; } + if (ref $data{paymentPlugins} ne "ARRAY") { + $data{paymentPlugins} = [$data{paymentPlugins}] if ($data{paymentPlugins}); + } if( defined( $data{scripturl} ) ) { # get rid of leading "/" if present. $data{scripturl} =~ s/^\///;