From 7c53f1a4031a1954627701b594d834eb8fbab660 Mon Sep 17 00:00:00 2001 From: hecht Date: Mon, 25 Sep 2017 15:56:52 +0000 Subject: [PATCH] added back link for tournaments, fixed auction bug and removed debug print at tournament registration --- ag/event_kampf_anzeige.php | 5 ++++- ag/include/auktion_functions.inc.php | 2 +- ag/turnier.php | 1 - 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ag/event_kampf_anzeige.php b/ag/event_kampf_anzeige.php index 7df561b..2a5df00 100644 --- a/ag/event_kampf_anzeige.php +++ b/ag/event_kampf_anzeige.php @@ -11,6 +11,9 @@ + + +
Zurück
- \ No newline at end of file + diff --git a/ag/include/auktion_functions.inc.php b/ag/include/auktion_functions.inc.php index def9e77..deb9c51 100644 --- a/ag/include/auktion_functions.inc.php +++ b/ag/include/auktion_functions.inc.php @@ -167,7 +167,7 @@ function biete_inverse($userid, $auktionsdaten, $gebot, $gebot2) { return 'Nicht genug Geld!'; } - db_query('UPDATE user SET geld = geld - '.$fee.' WHERE geld >= '.$required_money); + db_query('UPDATE user SET geld = geld - '.$fee.' WHERE geld >= '.$required_money.' AND id = '.$userid); if (db_affected_rows() == 0) { return 'Fehler beim Abbuchen der Gebühr!'; diff --git a/ag/turnier.php b/ag/turnier.php index 95811f3..d49f3a3 100644 --- a/ag/turnier.php +++ b/ag/turnier.php @@ -47,7 +47,6 @@ function anmelden($user, $charid, $type_id){ } $sear_a = mysqli_num_rows(db_query('SELECT tr.id FROM tournament_registration tr inner join chars as c ON tr.charakter = c.id WHERE tr.type='.$type_id.' AND '.$filter_sql)); - echo $sear_a.'
'; // Print the amount of registrations! if($sear_a >= $anzahl) { displayErrorMessage(NULL,'Turnier voll! Es künnen maximal nur '.$anzahl.' Chars am Turnier teilnehmen','weiter...'); return;