bugfix [1014236]: crash if only 1 wobject defined in webgui configfile.
This commit is contained in:
parent
a1f19ea9b2
commit
8c53dfcaec
1 changed files with 3 additions and 0 deletions
|
|
@ -138,6 +138,9 @@ sub readConfig {
|
|||
if (ref $data{authMethods} ne "ARRAY") {
|
||||
$data{authMethods} = [$data{authMethods}];
|
||||
}
|
||||
if (ref $data{wobjects} ne "ARRAY"){
|
||||
$data{wobjects} = [$data{wobjects}];
|
||||
}
|
||||
if( defined( $data{scripturl} ) ) {
|
||||
# get rid of leading "/" if present.
|
||||
$data{scripturl} =~ s/^\///;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue