diff --git a/site/config/config.php b/site/config/config.php index e1fe667..00828c1 100644 --- a/site/config/config.php +++ b/site/config/config.php @@ -1,5 +1,5 @@ true, - ]; \ No newline at end of file +return [ + 'debug' => true, +]; \ No newline at end of file diff --git a/site/snippets/dwz.php b/site/snippets/dwz.php index a9981ef..9be1f99 100644 --- a/site/snippets/dwz.php +++ b/site/snippets/dwz.php @@ -1,54 +1,84 @@ $dwzA; - }); - } +function safe($val) +{ + return $val === null || $val === false || $val === '' || $val === 'N' + ? '-' : htmlspecialchars($val); +} + +// Nach DWZ absteigend sortieren +if ($players && is_array($players)) { + usort($players, function ($a, $b) { + $dwzA = isset($a['dwz']) && is_numeric($a['dwz']) ? (int)$a['dwz'] + : 0; + $dwzB = isset($b['dwz']) && is_numeric($b['dwz']) ? (int)$b['dwz'] + : 0; + + return $dwzB <=> $dwzA; + }); +} ?> +
- - - - - - - - - - - - - - - - - - - +
PlatzMitgl.TitelNameDWZELO
- -
+ + + + + + + + + + + + + + + + + + - - + + + + + + + - - - - - -
PlatzMitgl.TitelNameDWZELO
+ + - + -
+ Keine Daten verfügbar. +
Keine Daten verfügbar.
-
+ + + +
\ No newline at end of file diff --git a/site/snippets/footer.php b/site/snippets/footer.php index 977cce9..8f67ccd 100644 --- a/site/snippets/footer.php +++ b/site/snippets/footer.php @@ -1,13 +1,13 @@