diff --git a/mozilla/webtools/bugzilla/doeditvotes.cgi b/mozilla/webtools/bugzilla/doeditvotes.cgi index 3902f91188e..7b830595a2d 100755 --- a/mozilla/webtools/bugzilla/doeditvotes.cgi +++ b/mozilla/webtools/bugzilla/doeditvotes.cgi @@ -34,8 +34,8 @@ GetVersionTable(); my $who = DBNameToIdAndCheck($::COOKIE{'Bugzilla_login'}); -if ($who ne $::FORM{'who'}) { - PutHeader("Wrong login."); +if ( (! defined $who) || (!$who) ) { + PutHeader("Bad login."); print "The login info got confused. If you want to adjust the votes\n"; print "for $::COOKIE{'Bugzilla_login'}, then please\n"; print "click here.
\n";