gshirt index

This commit is contained in:
Torsten 2017-12-29 10:10:04 +01:00
parent b41a8f4051
commit 16231357b4
7 changed files with 123 additions and 5 deletions

View file

@ -174,7 +174,9 @@ class Round extends Model
public static function getTippSpielLink() // Mit Verweis auf den aktuellen Tipp
{
$firstTippableRoundId=Round::getFirstTippableRound()->id;
$firstTippableRound=Round::getFirstTippableRound();
if (!$firstTippableRound) return "";
$firstTippableRoundId=$firstTippableRound->id;
$tippSpielLink="http://hoschis-tippspiel.de/tipps#".$firstTippableRoundId;
return $tippSpielLink;
}
@ -210,9 +212,9 @@ class Round extends Model
if ($seasonId!=-1) { $season = Season::where('id','=',$seasonId)->first(); }
$rounds = Round::where('season_id','=',$season->id)->get();
Log::info("Number of rounds:".sizeof($rounds));
//Log::info("Number of rounds:".sizeof($rounds));
Log::info("START");
//Log::info("START");
$roundnames = array();
foreach($rounds as $round) {
$roundnames[$round->id] = $round->name;