aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-07-25 06:38:50 +0000
committergerv%gerv.net <>2002-07-25 06:38:50 +0000
commit689a307bc2aa88d26d8aa59606c1a7f97b0e1e45 (patch)
tree6f1865adc1863cdaef81c8f2eee7344ab040c380 /quips.cgi
parentBug 67950b - quick fixes. Patch by gerv. (diff)
downloadbugzilla-689a307bc2aa88d26d8aa59606c1a7f97b0e1e45.tar.gz
bugzilla-689a307bc2aa88d26d8aa59606c1a7f97b0e1e45.tar.bz2
bugzilla-689a307bc2aa88d26d8aa59606c1a7f97b0e1e45.zip
Bug 67950c - make quips.cgi compile without warnings, by use vars-ing $userid. Patch by gerv.
Diffstat (limited to 'quips.cgi')
-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;
}