From 8c53dfcaec49d998e99497386202512102899c8f Mon Sep 17 00:00:00 2001 From: Leendert Bottelberghs Date: Mon, 23 Aug 2004 10:24:45 +0000 Subject: [PATCH] bugfix [1014236]: crash if only 1 wobject defined in webgui configfile. --- lib/WebGUI/Config.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/WebGUI/Config.pm b/lib/WebGUI/Config.pm index 45bbb0a05..973cb77ca 100644 --- a/lib/WebGUI/Config.pm +++ b/lib/WebGUI/Config.pm @@ -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/^\///;