Fix wish image not being saved
This commit is contained in:
parent
3f62c1bf90
commit
d341e2b35c
1 changed files with 4 additions and 0 deletions
|
@ -80,6 +80,8 @@ switch ($_SERVER['REQUEST_METHOD']) {
|
|||
$wish_description = $info->description;
|
||||
}
|
||||
|
||||
$wish_image = is_null($info->image) ? 'NULL' : "' . $info->image . '";
|
||||
|
||||
$response = array(
|
||||
'info' => $info,
|
||||
);
|
||||
|
@ -93,6 +95,7 @@ switch ($_SERVER['REQUEST_METHOD']) {
|
|||
`wishlist`,
|
||||
`title`,
|
||||
`description`,
|
||||
`image`,
|
||||
`url`,
|
||||
`priority`,
|
||||
`is_purchasable`
|
||||
|
@ -101,6 +104,7 @@ switch ($_SERVER['REQUEST_METHOD']) {
|
|||
' . $wishlist_id . ',
|
||||
"' . $wish_title . '",
|
||||
"' . $wish_description . '",
|
||||
' . $wish_image . ',
|
||||
"' . $wish_url . '",
|
||||
' . $wish_priority . ',
|
||||
' . $wish_is_purchasable . '
|
||||
|
|
Loading…
Reference in a new issue