Refactor
This commit is contained in:
parent
bcf93b617b
commit
5691fe2ad2
2 changed files with 6 additions and 4 deletions
|
@ -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';
|
||||
}
|
||||
|
|
|
@ -31,9 +31,11 @@ class Wishlist
|
|||
* Get Wishlist
|
||||
*/
|
||||
$columns = $database
|
||||
->query('SELECT *
|
||||
FROM `wishlists`
|
||||
WHERE `' . $column . '` = ' . $id_or_hash . ';')
|
||||
->query(
|
||||
'SELECT *
|
||||
FROM `wishlists`
|
||||
WHERE `' . $column . '` = ' . $id_or_hash . ';'
|
||||
)
|
||||
->fetch();
|
||||
|
||||
if ($columns) {
|
||||
|
|
Loading…
Reference in a new issue