Fix undefined array index

This commit is contained in:
Jay Trees 2022-03-10 13:40:20 +01:00
parent 2f21744371
commit b2f84c3093

View file

@ -56,21 +56,18 @@ switch ($_SERVER['REQUEST_METHOD']) {
$wish_title = trim($_POST['wish_title']); $wish_title = trim($_POST['wish_title']);
$wish_description = $_POST['wish_description'] ?: ''; $wish_description = $_POST['wish_description'] ?: '';
$wish_url = trim($_POST['wish_url']); $wish_url = trim($_POST['wish_url']);
$wish_priority = $_POST['wish_priority'] ?: 'NULL';
$database->query('INSERT INTO `wishes` $database->query('INSERT INTO `wishes`
( (
`wishlist`, `wishlist`,
`title`, `title`,
`description`, `description`,
`url`, `url`
`priority`
) VALUES (' ) VALUES ('
. $wishlist_id . ', . $wishlist_id . ',
"' . $wish_title . '", "' . $wish_title . '",
"' . $wish_description . '", "' . $wish_description . '",
"' . $wish_url . '", "' . $wish_url . '"
' . $wish_priority . '
) )
;'); ;');