my $error = '';
$offset = 0 unless $offset;
+ $c->detach('/default') if $offset < 0;
$c->stash(offset => $offset);
$c->stash( comma => \&comma_value);
while (my $planet = $query->fetchrow_hashref){
push @planets,$planet;
}
+ $c->detach('/default') unless @planets;
$c->stash(planets => \@planets);
}
my $error = '';
$offset = 0 unless $offset;
+ $c->detach('/default') if $offset < 0;
$c->stash(offset => $offset);
$c->stash( comma => \&comma_value);
while (my $galaxy = $query->fetchrow_hashref){
push @galaxies,$galaxy;
}
+ $c->detach('/default') unless @galaxies;
$c->stash(galaxies => \@galaxies);
}
my $error = '';
$offset = 0 unless $offset;
+ $c->detach('/default') if $offset < 0;
$c->stash(offset => $offset);
$c->stash( comma => \&comma_value);
while (my $alliance = $query->fetchrow_hashref){
push @alliances,$alliance;
}
+ $c->detach('/default') unless @alliances;
$c->stash(alliances => \@alliances);
}