From: jocuri%softhome.net <> Date: Thu, 20 Nov 2003 14:22:14 +0000 (+0000) Subject: Bug 226249: buglist.cgi warning (use uninitialized value) line 97 for no ctype define... X-Git-Tag: bugzilla-2.17.7~120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a3bc3f2d2364b3175ba85832a4a4bc59eecf52a;p=thirdparty%2Fbugzilla.git Bug 226249: buglist.cgi warning (use uninitialized value) line 97 for no ctype defined; r=kiko; a=justdave. --- diff --git a/buglist.cgi b/buglist.cgi index 2183d5a790..246bf64c96 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -94,7 +94,7 @@ if ($::FORM{'format'} && $::FORM{'format'} eq "rdf" && !$::FORM{'ctype'}) { # # Note that if and when this call clears cookies or has other persistent # effects, we'll need to do this another way instead. -if ($::FORM{'ctype'} eq "js") { +if ((exists $::FORM{'ctype'}) && ($::FORM{'ctype'} eq "js")) { Bugzilla->logout(); }