This commit is contained in:
grandeljay 2022-09-15 15:52:28 +02:00
parent bcf93b617b
commit 5691fe2ad2
2 changed files with 6 additions and 4 deletions

View file

@ -130,7 +130,7 @@ class Wish
* Card
*/
if ($this->url) {
$generateCache = $this->cache->generateCache() || !$this->url ? 'true' : 'false';
$generateCache = $this->cache->generateCache() ? 'true' : 'false';
} else {
$generateCache = 'false';
}

View file

@ -31,9 +31,11 @@ class Wishlist
* Get Wishlist
*/
$columns = $database
->query('SELECT *
->query(
'SELECT *
FROM `wishlists`
WHERE `' . $column . '` = ' . $id_or_hash . ';')
WHERE `' . $column . '` = ' . $id_or_hash . ';'
)
->fetch();
if ($columns) {