Fix wish image not being saved

This commit is contained in:
grandeljay 2022-06-11 15:28:02 +02:00
parent 3f62c1bf90
commit d341e2b35c

View file

@ -80,6 +80,8 @@ switch ($_SERVER['REQUEST_METHOD']) {
$wish_description = $info->description; $wish_description = $info->description;
} }
$wish_image = is_null($info->image) ? 'NULL' : "' . $info->image . '";
$response = array( $response = array(
'info' => $info, 'info' => $info,
); );
@ -93,6 +95,7 @@ switch ($_SERVER['REQUEST_METHOD']) {
`wishlist`, `wishlist`,
`title`, `title`,
`description`, `description`,
`image`,
`url`, `url`,
`priority`, `priority`,
`is_purchasable` `is_purchasable`
@ -101,6 +104,7 @@ switch ($_SERVER['REQUEST_METHOD']) {
' . $wishlist_id . ', ' . $wishlist_id . ',
"' . $wish_title . '", "' . $wish_title . '",
"' . $wish_description . '", "' . $wish_description . '",
' . $wish_image . ',
"' . $wish_url . '", "' . $wish_url . '",
' . $wish_priority . ', ' . $wish_priority . ',
' . $wish_is_purchasable . ' ' . $wish_is_purchasable . '