Deploy: DB-Verbindung vor Upload pruefen (falscher DB_HOST brach die App), Warnung beim Anlegen-Formular behoben

This commit is contained in:
torsten 2026-11-22 19:05:40 +01:00
parent ccfc257bbf
commit 27a267893e
3 changed files with 17 additions and 2 deletions

View file

@ -548,7 +548,7 @@ function character_form_values(array $source): array
));
$values['hp_max'] = max(1, post_int('hp_max', (int) ($source['hp_max'] ?? 1)));
$values['hp_current'] = post_int('hp_current', (int) ($source['hp_current'] ?? $values['hp_max']));
$acRaw = post_string('ac', $source['ac'] === null ? '' : (string) $source['ac']);
$acRaw = post_string('ac', ($source['ac'] ?? null) === null ? '' : (string) $source['ac']);
$values['ac'] = $acRaw === '' ? null : max(-10, min(30, (int) $acRaw));
$values['attack_bonus'] = post_int('attack_bonus', (int) ($source['attack_bonus'] ?? 0));
$values['gold_coins'] = post_int('gold_coins', (int) ($source['gold_coins'] ?? 0));