Fixed a bug where having one payment plugin would crash the commerce part.

This commit is contained in:
Martin Kamerbeek 2004-12-10 09:32:47 +00:00
parent 0267ff399e
commit 1262c20d31

View file

@ -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/^\///;