Fixed issue that money wasn't correctly displayed.

main
hecht 7 years ago
parent 2e96486cc1
commit 819ec08771

@ -112,7 +112,7 @@ if ($name AND $passwort) {
$user_geld = getRelevantMoney($user_ida['id']);
if ($user_info_test['geld']== $user_geld) {
if ($user_info_test['geld'] == $user_geld) {
$geldstring = $user_info_test2['geld'];
} else {
$geldstring = displayMoney($user_geld) . ' (' . $user_info_test2['geld'] . ')';

@ -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 = $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) ) {
$auktionensumme += $inverse_summe[0];

@ -448,7 +448,7 @@ function displayKampfErstellen($user, $portal, $pagenum){
$qry = db_query('Select * from arena where besitzer = '.$user['id']);
$arena = mysqli_fetch_assoc($qry);
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']));
}
if($arena['mietlasten'] > 7){

Loading…
Cancel
Save