kurse erstellen done

This commit is contained in:
2025-07-03 12:54:08 +02:00
parent 6c431faa21
commit ae554ab0a6
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ class AdminController
if (strpos($value, "*") !== false && (!isset($_POST[$index]) || empty($_POST[$index]))) {
$this->errors[$index] = "Bitte " . $value . " eingeben";
} else {
$this->validData[$index] = $_POST[$index];
$this->validData[$index] = $_POST[$index] === '' ? null : $_POST[$index];
}
}
if (count($this->errors) > 0) {