summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-09-03 18:12:18 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-09-03 18:12:18 +0200
commit355bca93c1cb492a6214376a672d5b0d37dd2e0b (patch)
tree9ec19ea3b43cd773a03285a857d60602150605e7
parentf9c7c89528430b85e55af20a232c718545415e6f (diff)
index.pl: Always use get_user_id without argument
-rw-r--r--index.pl4
1 files 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;