X-Git-Url: http://aymargeddon.de/gitweb/?p=aymargeddon%2Fcurrent.git;a=blobdiff_plain;f=src%2FFROGS%2FDataBase.pm;h=32342dd69a549031820c30fbd7bea68c7a7a9ae7;hp=b3b721bb851e2b5b0c2f4675bae304efeb9aa1ed;hb=edbdf981639e5bc7d16a8ccd7e59ce2cf71bd142;hpb=d546361806d5b7245e063c050eb0347b84bc7880 diff --git a/src/FROGS/DataBase.pm b/src/FROGS/DataBase.pm index b3b721b..32342dd 100644 --- a/src/FROGS/DataBase.pm +++ b/src/FROGS/DataBase.pm @@ -530,18 +530,20 @@ sub games_of_player{ sub open_games{ my ($self,$cond) = @_; my $games = $self->select_array('GAME','GAME'); - # return $games; my @log; for my $game (@$games){ - my $c = "GAME=$game"; - $c .= "AND $cond" if $cond; - + Util::log( Dumper($game)."\n",1); + my $c = "GAME=". $game->[0]; + $c .= " AND $cond" if $cond; + Util::log($c."\n",1); my $unused = $self->select_array('MAP','LOCATION','',$c); print $unused; - push @log, $game if $#{@$unused} + 1; + Util::log(Dumper(@$unused),1); + + push @log, $game->[0] if @$unused + 1; } return \@log; }