bugfix [1014236]: crash if only 1 wobject defined in webgui configfile.

This commit is contained in:
Leendert Bottelberghs 2004-08-23 10:24:45 +00:00
parent a1f19ea9b2
commit 8c53dfcaec

View file

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