From 6d7d5263306a140b3d685e6599ede8e2d8a6d8e8 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sat, 5 Apr 2003 06:40:30 +0000 Subject: [PATCH] fixed a bug where webgui would crash if only one auth method was specified in the site config --- lib/WebGUI/Session.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/WebGUI/Session.pm b/lib/WebGUI/Session.pm index e0a1784e0..49182f6e7 100644 --- a/lib/WebGUI/Session.pm +++ b/lib/WebGUI/Session.pm @@ -348,6 +348,9 @@ sub open { foreach ($config->directives) { $session{config}{$_} = $config->get($_); } + if (ref $session{config}{authMethods} ne "ARRAY") { + $session{config}{authMethods} = [$session{config}{authMethods}]; + } if( defined( $session{config}{scripturl} ) ) { # get rid of leading "/" if present. $session{config}{scripturl} =~ s/^\///;