Compare commits

..

No commits in common. "bc8ddbff4cd0d3ab7f0161e7352f8734b5d06e39" and "ae3a653de4e2177ba667f58d85985fa9a187f8be" have entirely different histories.

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

2
db.sql
View File

@ -25,7 +25,7 @@ CREATE TABLE ort(
CREATE TABLE kurs( CREATE TABLE kurs(
id VARCHAR(36) NOT NULL UNIQUE, id VARCHAR(36) NOT NULL UNIQUE,
`name` VARCHAR(100) NOT NULL, `name` VARCHAR(100) NOT NULL,
kategorie VARCHAR(100), kategorie VARCHAR(100) NOT NULL,
preis DECIMAL(10, 2) NOT NULL, preis DECIMAL(10, 2) NOT NULL,
kurseleiter VARCHAR(36) NOT NULL, kurseleiter VARCHAR(36) NOT NULL,
ort_id VARCHAR(36) NOT NULL, ort_id VARCHAR(36) NOT NULL,