fix: wishlist saved view
This commit is contained in:
parent
31df7de9e0
commit
2fbbfe4e3f
2 changed files with 8 additions and 8 deletions
|
@ -284,17 +284,17 @@ class User
|
|||
|
||||
$result = $database
|
||||
->query(
|
||||
'SELECT `ws`.`wishlist`,
|
||||
`w`.`user`,
|
||||
`w`.`hash`
|
||||
FROM `wishlists_saved` `ws`
|
||||
JOIN `wishlists` `w` ON `w`.`id` = `ws`.`wishlist`
|
||||
WHERE `ws`.`user` = :user_id;',
|
||||
' SELECT `wishlists_saved`.`wishlist`,
|
||||
`wishlists`.`user`,
|
||||
`wishlists`.`hash`
|
||||
FROM `wishlists_saved`
|
||||
LEFT JOIN `wishlists` ON `wishlists`.`id` = `wishlists_saved`.`wishlist`
|
||||
WHERE `wishlists_saved`.`user` = :user_id;',
|
||||
array(
|
||||
'user_id' => $this->id,
|
||||
)
|
||||
)
|
||||
->fetchAll();
|
||||
->fetchAll(\PDO::FETCH_ASSOC);
|
||||
|
||||
if ($result) {
|
||||
$wishlists = $result;
|
||||
|
|
|
@ -238,7 +238,7 @@ class Wishlist
|
|||
{
|
||||
$title = __('Wishlist not found');
|
||||
|
||||
if ($this->exists) {
|
||||
if ($this->name) {
|
||||
$title = $this->name;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue