From d341e2b35c4994a70d5455719a0b7e07344a2dcd Mon Sep 17 00:00:00 2001 From: grandeljay Date: Sat, 11 Jun 2022 15:28:02 +0200 Subject: [PATCH] Fix wish image not being saved --- src/api/wishes.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/api/wishes.php b/src/api/wishes.php index acaaa751..f2fc198e 100644 --- a/src/api/wishes.php +++ b/src/api/wishes.php @@ -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 . '