Unverified Commit 04d09601 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Api: Fix 'uninitialized value' warning when no token is set

parent cf7f9933
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -71,7 +71,10 @@ sub get_v1 {
	}

	my $token = $self->get_api_token($uid);
	if ( $api_token ne $token->{$api_action} ) {
	if (   not $api_token
		or not $token->{$api_action}
		or $api_token ne $token->{$api_action} )
	{
		$self->render(
			json => {
				error => 'Invalid token',