summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-07-25 08:38:50 +0200
committergerv%gerv.net <>2002-07-25 08:38:50 +0200
commit689a307bc2aa88d26d8aa59606c1a7f97b0e1e45 (patch)
tree6f1865adc1863cdaef81c8f2eee7344ab040c380
parent0e3c836ce8de548bec6550f27b49f5c8fbcbc6e2 (diff)
downloadbugzilla-689a307bc2aa88d26d8aa59606c1a7f97b0e1e45.tar.gz
bugzilla-689a307bc2aa88d26d8aa59606c1a7f97b0e1e45.tar.xz
Bug 67950c - make quips.cgi compile without warnings, by use vars-ing $userid. Patch by gerv.
-rwxr-xr-xquips.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/quips.cgi b/quips.cgi
index be773e1e1..e97bdd2b3 100755
--- a/quips.cgi
+++ b/quips.cgi
@@ -27,6 +27,7 @@ use strict;
use vars qw(
%FORM
+ $userid
$template
$vars
);
@@ -68,7 +69,7 @@ if ($action eq "add") {
exit();
}
- SendSQL("INSERT INTO quips (userid, quip) VALUES (". $::userid . ", " . SqlQuote($comment) . ")");
+ SendSQL("INSERT INTO quips (userid, quip) VALUES (". $userid . ", " . SqlQuote($comment) . ")");
$vars->{'added_quip'} = $comment;
}