Fixed issue that money wasn't correctly displayed.

main
hecht 7 years ago
parent 2e96486cc1
commit 819ec08771

@ -59,7 +59,7 @@ function getRelevantMoney($userid) {
$auktionensumme = mysqli_fetch_assoc(db_query('SELECT SUM(aktuellesgebot) as summe FROM auktion WHERE bieter = ' . $user['id'] . ' GROUP BY bieter')); $auktionensumme = mysqli_fetch_assoc(db_query('SELECT SUM(aktuellesgebot) as summe FROM auktion WHERE bieter = ' . $user['id'] . ' GROUP BY bieter'));
$auktionensumme = $auktionensumme['summe']; $auktionensumme = $auktionensumme['summe'];
$qry = db_query('SELECT max(range_to) FROM test_ag.inverse_auktion_gebote WHERE bieter = '.$userid.' group by auktionsid'); $qry = db_query('SELECT max(range_to) FROM inverse_auktion_gebote WHERE bieter = '.$userid.' group by auktionsid');
while( $inverse_summe = mysqli_fetch_row($qry) ) { while( $inverse_summe = mysqli_fetch_row($qry) ) {
$auktionensumme += $inverse_summe[0]; $auktionensumme += $inverse_summe[0];

@ -448,7 +448,7 @@ function displayKampfErstellen($user, $portal, $pagenum){
$qry = db_query('Select * from arena where besitzer = '.$user['id']); $qry = db_query('Select * from arena where besitzer = '.$user['id']);
$arena = mysqli_fetch_assoc($qry); $arena = mysqli_fetch_assoc($qry);
if(mysqli_num_rows($qry) == 0){ if(mysqli_num_rows($qry) == 0){
db_query('INSERT arena(besitzer, exp) values (\''.$user_ida['id'].'\', \'0,'.calculateRequiredExpArena(1).'\')'); db_query('INSERT arena(besitzer, exp) values (\''.$user['id'].'\', \'0,'.calculateRequiredExpArena(1).'\')');
$arena = mysqli_fetch_assoc(db_query('Select * from arena where besitzer = '.$user['id'])); $arena = mysqli_fetch_assoc(db_query('Select * from arena where besitzer = '.$user['id']));
} }
if($arena['mietlasten'] > 7){ if($arena['mietlasten'] > 7){

Loading…
Cancel
Save