Attributkuerzel deutsch: GES, KON, WEI (Migration 5 inkl. Daten)
This commit is contained in:
parent
a79e7e7781
commit
be55f9c3f5
6 changed files with 62 additions and 35 deletions
|
|
@ -878,7 +878,7 @@ function page_admin_skills(string $method, array $user): void
|
|||
$category = post_string('category', 'Allgemein');
|
||||
if ($name === '') {
|
||||
$error = 'Bitte einen Namen angeben.';
|
||||
} elseif (!in_array($attribute, ['STR', 'DEX', 'CON', 'INT', 'WIS', 'CHA', ''], true)) {
|
||||
} elseif (!in_array($attribute, array_merge(array_keys(WS_ATTRIBUTE_CODES), ['']), true)) {
|
||||
$attribute = '';
|
||||
} else {
|
||||
skills_catalog_add($name, $attribute, $category);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue