diff options
author | mkanat%kerio.com <> | 2005-03-09 09:26:38 +0100 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-03-09 09:26:38 +0100 |
commit | 0b7d9e7f772ee107d0cb1816d6c5cb679ae6e01a (patch) | |
tree | 93f5ab09d20a212b8ba499e2cf59756aaad3b902 /editkeywords.cgi | |
parent | 5b1b54e9b96da06b6802f79108a20080f7f93f18 (diff) | |
download | bugzilla-0b7d9e7f772ee107d0cb1816d6c5cb679ae6e01a.tar.gz bugzilla-0b7d9e7f772ee107d0cb1816d6c5cb679ae6e01a.tar.xz |
Bug 284975: Any code after Throw*Error is a dead code.
Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=LpSolit, a=myk
Diffstat (limited to 'editkeywords.cgi')
-rwxr-xr-x | editkeywords.cgi | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/editkeywords.cgi b/editkeywords.cgi index 9c835e8b7..4f4cf4bd5 100755 --- a/editkeywords.cgi +++ b/editkeywords.cgi @@ -37,15 +37,12 @@ sub Validate ($$) { my ($name, $description) = @_; if ($name eq "") { ThrowUserError("keyword_blank_name"); - exit; } if ($name =~ /[\s,]/) { ThrowUserError("keyword_invalid_name"); - exit; } if ($description eq "") { ThrowUserError("keyword_blank_description"); - exit; } } @@ -124,7 +121,6 @@ if ($action eq 'new') { if (FetchOneColumn()) { $vars->{'name'} = $name; ThrowUserError("keyword_already_exists"); - exit; } @@ -183,7 +179,6 @@ if ($action eq 'edit') { if (!$name) { $vars->{'id'} = $id; ThrowCodeError("invalid_keyword_id", $vars); - exit; } SendSQL("SELECT count(*) @@ -227,7 +222,6 @@ if ($action eq 'update') { if ($tmp && $tmp != $id) { $vars->{'name'} = $name; ThrowUserError("keyword_already_exists", $vars); - exit; } SendSQL("UPDATE keyworddefs SET name = " . SqlQuote($name) . |