several cosmetic updates

This commit is contained in:
Torsten 2017-08-04 16:51:28 +02:00
parent 5a90bb2c8a
commit 8c368524fe
8 changed files with 56 additions and 24 deletions

View file

@ -26,14 +26,8 @@ class Game extends Model
public function hasResult() {
$game = $this;
$hasIt = $game->score1 > -1;
return $game->score1 > -1;
if ($hasIt==false) {
return false;
}
return true;
}
public static function has_result($game_id) {