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_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 . '
|
|
||||||
)
|
)
|
||||||
;');
|
;');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue