@ -230,7 +230,7 @@ function displayBody($challenge, $clans, $user) {
if(strtotime($challenge['enddate']) < time() ) {
//sieger rausfinden
if($clans[0]['points'] > $clans[0]['points']) {
if($clans[0]['points'] > $clans[1]['points']) {
$winner = $clans[0]['name'];
} else {
$winner = $clans[1]['name'];