summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xquips.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/quips.cgi b/quips.cgi
index 9834665f9..0e0c13d08 100755
--- a/quips.cgi
+++ b/quips.cgi
@@ -63,7 +63,7 @@ if ($action eq "show") {
my $users;
foreach my $quipid (@quipids) {
my $userid = $quips->{$quipid}{'userid'};
- if (not defined $users->{$userid}) {
+ if ($userid && not defined $users->{$userid}) {
SendSQL("SELECT login_name FROM profiles WHERE userid = $userid");
$users->{$userid} = FetchOneColumn();
}