]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 463677: editusers.cgi: Use of uninitialized value in string eq - Patch by FrÃ...
authorlpsolit%gmail.com <>
Tue, 11 Nov 2008 04:13:19 +0000 (04:13 +0000)
committerlpsolit%gmail.com <>
Tue, 11 Nov 2008 04:13:19 +0000 (04:13 +0000)
editusers.cgi

index a75f42040f42af05c2c016202f8ef1e9169bc84f..ea477a372c887c770bce28c64fe09d02365a3c12 100755 (executable)
@@ -170,7 +170,7 @@ if ($action eq 'search') {
 
     }
 
-    if ($matchtype eq 'exact' && scalar(@{$vars->{'users'}}) == 1) {
+    if ($matchtype && $matchtype eq 'exact' && scalar(@{$vars->{'users'}}) == 1) {
         my $match_user_id = $vars->{'users'}[0]->{'userid'};
         my $match_user = check_user($match_user_id);
         edit_processing($match_user);