Fix undefined array index
This commit is contained in:
parent
2f21744371
commit
b2f84c3093
1 changed files with 2 additions and 5 deletions
|
@ -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 . '"
|
||||
)
|
||||
;');
|
||||
|
||||
|
|
Loading…
Reference in a new issue