From 89a5e5bbc47bbcff12a28def24e10e515659a897 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 22 May 2015 17:15:35 +0200 Subject: [PATCH] Don't try to log token if it's not defined --- vroom.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vroom.pl b/vroom.pl index fad8b81..814038b 100755 --- a/vroom.pl +++ b/vroom.pl @@ -694,12 +694,12 @@ helper check_invite_token => sub { my ($room,$token) = @_; # Expire invitations before checking if it's valid $self->purge_invitations; - $self->app->log->debug("Checking if invitation with token $token is valid for room $room"); my $ret = 0; my $data = $self->get_room_by_name($room); if (!$data || !$token){ return 0; } + $self->app->log->debug("Checking if invitation with token $token is valid for room $room"); my $sth = eval { $self->db->prepare('SELECT COUNT(`id`) FROM `email_invitations`