summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}