This commit is contained in:
2025-12-05 03:39:24 +09:00
parent 20bab54235
commit b823b7368f
2 changed files with 53 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ $desc = $_POST['desc'];
$name = $_POST['organisername'];
$uname = $_POST['organiser'];
$mail = $_POST['organiseremail'];
$active = ($_POST['active'] ?? 0);
$active = ($_POST['active'] ?? false);
if ($id == 0) {
@@ -42,7 +42,7 @@ if ($id == 0) {
$statement->bindParam(':title', $title, PDO::PARAM_STR);
$statement->bindParam(':desc', $desc, PDO::PARAM_STR);
$statement->bindParam(':active', $active, PDO::PARAM_INT);
$statement->bindParam(':active', $active, PDO::PARAM_BOOL);
$statement->execute();
@@ -59,7 +59,7 @@ if ($id == 0) {
$statement->bindParam(':title', $title, PDO::PARAM_STR);
$statement->bindParam(':desc', $desc, PDO::PARAM_STR);
$statement->bindParam(':active', $active, PDO::PARAM_INT);
$statement->bindParam(':active', $active, PDO::PARAM_BOOL);
$statement->bindParam(':id', $id, PDO::PARAM_INT);
$statement->execute();
@@ -77,4 +77,4 @@ if ($id == 0) {
header('Location: .');
?>
<a href=".?page=1">Om du ikke ble automatisk omdirigert tilbake klikk her</a>
<a href=".?page=1">Om du ikke ble automatisk omdirigert tilbake klikk her</a>