This commit is contained in:
Torsten 2017-07-18 14:58:32 +02:00
parent 164bb95eca
commit 30248ae4ef
6039 changed files with 3364 additions and 2287 deletions

2
pfosten/app/Tipp.php Normal file → Executable file
View file

@ -78,6 +78,8 @@ class Tipp extends Model
// Bei Tagessieg gilt nur wer am meisten genau richtig getippt hat,
// Bei Gleichstand wer den höchsten Jokersieg hat ( Jokersieg mit mehr Toren zählt mehr)
public static function getDayScoreLocal($goals1, $goals2, $tipp1, $tipp2, $joker) {
if ($tipp1==-1||$tipp2==-1||$goals1==-1||$goals2==-1) { return 0; } // Ungetippt oder Spiel hat noch kein Ergebnis
if ( ($tipp1 != $goals1) || ($tipp2 != $goals2) ) return 0;