gshirt index
This commit is contained in:
parent
b41a8f4051
commit
16231357b4
7 changed files with 123 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue