]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 113646, midair when changing assignee gives error. Fix changes sub trim...
authorzach%zachlipton.com <>
Mon, 17 Dec 2001 09:29:52 +0000 (09:29 +0000)
committerzach%zachlipton.com <>
Mon, 17 Dec 2001 09:29:52 +0000 (09:29 +0000)
set.

Patch by myk@mozilla.org, r1=bbaetz, r2=dave.

globals.pl

index 09c9934bf6555baa9be5811404c41dca062ef693..87db566c1862060eaaa8d8201c0250e2205fd073 100644 (file)
@@ -1523,10 +1523,10 @@ sub max {
 # Trim whitespace from front and back.
 
 sub trim {
-    ($_) = (@_);
-    s/^\s+//g;
-    s/\s+$//g;
-    return $_;
+    my ($str) = @_;
+    $str =~ s/^\s+//g;
+    $str =~ s/\s+$//g;
+    return $str;
 }
 
 1;