Refactor
This commit is contained in:
parent
2eab3691c9
commit
59d529a9d3
2 changed files with 14 additions and 10 deletions
|
@ -116,9 +116,11 @@ class User
|
|||
global $database;
|
||||
|
||||
$wishlists = $database
|
||||
->query('SELECT *
|
||||
FROM `wishlists`
|
||||
WHERE `user` = ' . $this->id . ';')
|
||||
->query(
|
||||
'SELECT *
|
||||
FROM `wishlists`
|
||||
WHERE `user` = ' . $this->id . ';'
|
||||
)
|
||||
->fetchAll();
|
||||
|
||||
return $wishlists;
|
||||
|
@ -135,12 +137,14 @@ 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` = ' . $this->id . ';')
|
||||
->query(
|
||||
'SELECT `ws`.`wishlist`,
|
||||
`w`.`user`,
|
||||
`w`.`hash`
|
||||
FROM `wishlists_saved` `ws`
|
||||
JOIN `wishlists` `w` ON `w`.`id` = `ws`.`wishlist`
|
||||
WHERE `ws`.`user` = ' . $this->id . ';'
|
||||
)
|
||||
->fetchAll();
|
||||
|
||||
if ($result) {
|
||||
|
|
|
@ -103,7 +103,7 @@ $page->navigation();
|
|||
<li>
|
||||
<?php
|
||||
/** TRANSLATORS: Changelog: Added */
|
||||
echo __('A roadmap in the changelog.');
|
||||
echo __('A roadmap in the changelog');
|
||||
?>
|
||||
</li>
|
||||
<li>
|
||||
|
|
Loading…
Reference in a new issue