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;
|
global $database;
|
||||||
|
|
||||||
$wishlists = $database
|
$wishlists = $database
|
||||||
->query('SELECT *
|
->query(
|
||||||
FROM `wishlists`
|
'SELECT *
|
||||||
WHERE `user` = ' . $this->id . ';')
|
FROM `wishlists`
|
||||||
|
WHERE `user` = ' . $this->id . ';'
|
||||||
|
)
|
||||||
->fetchAll();
|
->fetchAll();
|
||||||
|
|
||||||
return $wishlists;
|
return $wishlists;
|
||||||
|
@ -135,12 +137,14 @@ class User
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = $database
|
$result = $database
|
||||||
->query('SELECT `ws`.`wishlist`,
|
->query(
|
||||||
`w`.`user`,
|
'SELECT `ws`.`wishlist`,
|
||||||
`w`.`hash`
|
`w`.`user`,
|
||||||
FROM `wishlists_saved` `ws`
|
`w`.`hash`
|
||||||
JOIN `wishlists` `w` ON `w`.`id` = `ws`.`wishlist`
|
FROM `wishlists_saved` `ws`
|
||||||
WHERE `ws`.`user` = ' . $this->id . ';')
|
JOIN `wishlists` `w` ON `w`.`id` = `ws`.`wishlist`
|
||||||
|
WHERE `ws`.`user` = ' . $this->id . ';'
|
||||||
|
)
|
||||||
->fetchAll();
|
->fetchAll();
|
||||||
|
|
||||||
if ($result) {
|
if ($result) {
|
||||||
|
|
|
@ -103,7 +103,7 @@ $page->navigation();
|
||||||
<li>
|
<li>
|
||||||
<?php
|
<?php
|
||||||
/** TRANSLATORS: Changelog: Added */
|
/** TRANSLATORS: Changelog: Added */
|
||||||
echo __('A roadmap in the changelog.');
|
echo __('A roadmap in the changelog');
|
||||||
?>
|
?>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
|
Loading…
Reference in a new issue