Fix wish images not saving
This commit is contained in:
parent
26a446d9a4
commit
32cef2dc9c
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
2
src/classes/cache/embed.php
vendored
2
src/classes/cache/embed.php
vendored
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue