summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Token.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Token.pm')
-rw-r--r--Bugzilla/Token.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Token.pm b/Bugzilla/Token.pm
index 6dd8baa6e..f00e65280 100644
--- a/Bugzilla/Token.pm
+++ b/Bugzilla/Token.pm
@@ -310,7 +310,7 @@ sub _create_token {
my ($userid, $tokentype, $eventdata) = @_;
my $dbh = Bugzilla->dbh;
- detaint_natural($userid);
+ detaint_natural($userid) if defined $userid;
trick_taint($tokentype);
trick_taint($eventdata);