Fixed a bug where having one payment plugin would crash the commerce part.
This commit is contained in:
parent
0267ff399e
commit
1262c20d31
1 changed files with 3 additions and 0 deletions
|
|
@ -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/^\///;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue