Commit 689a307b authored by gerv%gerv.net's avatar gerv%gerv.net

Bug 67950c - make quips.cgi compile without warnings, by use vars-ing $userid. Patch by gerv.

parent 0e3c836c
...@@ -27,6 +27,7 @@ use strict; ...@@ -27,6 +27,7 @@ use strict;
use vars qw( use vars qw(
%FORM %FORM
$userid
$template $template
$vars $vars
); );
...@@ -68,7 +69,7 @@ if ($action eq "add") { ...@@ -68,7 +69,7 @@ if ($action eq "add") {
exit(); 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; $vars->{'added_quip'} = $comment;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment