From 355bca93c1cb492a6214376a672d5b0d37dd2e0b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 3 Sep 2018 18:12:18 +0200 Subject: [PATCH] index.pl: Always use get_user_id without argument --- index.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.pl b/index.pl index 933e91f..a77603a 100644 --- a/index.pl +++ b/index.pl @@ -424,7 +424,7 @@ helper 'get_user_id' => sub { helper 'get_user_travels' => sub { my ($self) = @_; - my $uid = $self->get_user_id( $self->get_user_name ); + my $uid = $self->get_user_id; $self->app->get_all_actions_query->execute($uid); my @travels; @@ -473,7 +473,7 @@ helper 'get_user_travels' => sub { helper 'get_user_status' => sub { my ($self) = @_; - my $uid = $self->get_user_id( $self->get_user_name ); + my $uid = $self->get_user_id; $self->app->get_last_actions_query->execute($uid); my $rows = $self->app->get_last_actions_query->fetchall_arrayref;