From 689a307bc2aa88d26d8aa59606c1a7f97b0e1e45 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Thu, 25 Jul 2002 06:38:50 +0000 Subject: Bug 67950c - make quips.cgi compile without warnings, by use vars-ing $userid. Patch by gerv. --- quips.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'quips.cgi') 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; } -- cgit v1.2.3-24-g4f1b