diff --git a/src/api/wishes.php b/src/api/wishes.php index 55f6c5d1..87744191 100644 --- a/src/api/wishes.php +++ b/src/api/wishes.php @@ -75,7 +75,7 @@ switch ($_SERVER['REQUEST_METHOD']) { $wish_description = $info->description; } - $wish_image = is_null($info->image) ? 'NULL' : "' . $info->image . '"; + $wish_image = is_null($info->image) ? 'NULL' : '"' . $info->image . '"'; $response = array( 'info' => $info, diff --git a/src/classes/cache/embed.php b/src/classes/cache/embed.php index b3487d42..37de6131 100644 --- a/src/classes/cache/embed.php +++ b/src/classes/cache/embed.php @@ -74,7 +74,7 @@ class Embed extends Cache $info_simplified->favicon = (string) $info->favicon; $info_simplified->feeds = (array) $info->feeds; $info_simplified->icon = (string) $info->icon; - $info_simplified->image = isset($info->image) && $info->image ? (string) $info->image : null; + $info_simplified->image = (string) $info->image; $info_simplified->keywords = (array) $info->keywords; $info_simplified->language = (string) $info->language; $info_simplified->languages = (array) $info->languages;