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_description = $_POST['wish_description'] ?: '';
$wish_url = trim($_POST['wish_url']);
$wish_priority = $_POST['wish_priority'] ?: 'NULL';
$database->query('INSERT INTO `wishes`
(
`wishlist`,
`title`,
`description`,
`url`,
`priority`
`url`
) VALUES ('
. $wishlist_id . ',
"' . $wish_title . '",
"' . $wish_description . '",
"' . $wish_url . '",
' . $wish_priority . '
"' . $wish_url . '"
)
;');