diff options
author | bbaetz%acm.org <> | 2003-04-02 20:35:00 +0000 |
---|---|---|
committer | bbaetz%acm.org <> | 2003-04-02 20:35:00 +0000 |
commit | b259c4b4252cde8e7926690f6ba419d2ee7c59fc (patch) | |
tree | ae51804f9db83c0b1a49f79b9e0a1848cdd5e7c7 /globals.pl | |
parent | 747eb2ddd7febfa0e33ccf3797bf48db0defafcc (diff) | |
download | bugs-b259c4b4252cde8e7926690f6ba419d2ee7c59fc.tar bugs-b259c4b4252cde8e7926690f6ba419d2ee7c59fc.tar.gz bugs-b259c4b4252cde8e7926690f6ba419d2ee7c59fc.tar.bz2 bugs-b259c4b4252cde8e7926690f6ba419d2ee7c59fc.tar.xz bugs-b259c4b4252cde8e7926690f6ba419d2ee7c59fc.zip |
Bug 199813 - Make all users of ThrowUserError pass $vars in explicitly.
r=gerv
a=justdave
Diffstat (limited to 'globals.pl')
-rw-r--r-- | globals.pl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/globals.pl b/globals.pl index ae656d9ec..38833ce15 100644 --- a/globals.pl +++ b/globals.pl @@ -127,7 +127,6 @@ sub AppendComment { # zero or more digits, OR we have a period followed by one or more digits if ($work_time !~ /^-?(?:\d+(?:\.\d*)?|\.\d+)$/) { ThrowUserError("need_numeric_value"); - return; } } else { $work_time = 0 }; @@ -863,8 +862,8 @@ sub DBNameToIdAndCheck { return $result; } - $::vars->{'name'} = $name; - ThrowUserError("invalid_username"); + ThrowUserError("invalid_username", + { name => $name }); } |