summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-03-09 08:26:38 +0000
committermkanat%kerio.com <>2005-03-09 08:26:38 +0000
commit0b7d9e7f772ee107d0cb1816d6c5cb679ae6e01a (patch)
tree93f5ab09d20a212b8ba499e2cf59756aaad3b902 /editkeywords.cgi
parentBug 282145: Bug.pm is too slow for general use (diff)
downloadbugzilla-0b7d9e7f772ee107d0cb1816d6c5cb679ae6e01a.tar.gz
bugzilla-0b7d9e7f772ee107d0cb1816d6c5cb679ae6e01a.tar.bz2
bugzilla-0b7d9e7f772ee107d0cb1816d6c5cb679ae6e01a.zip
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-xeditkeywords.cgi6
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) .