Fix wishlist not found

This commit is contained in:
grandeljay 2023-01-28 15:29:43 +01:00
parent ce744e7278
commit 4c5bafe1b2
2 changed files with 2 additions and 3 deletions

View file

@ -24,7 +24,6 @@ class Wishlist
$column = 'id'; $column = 'id';
} elseif (is_string($id_or_hash)) { } elseif (is_string($id_or_hash)) {
$column = 'hash'; $column = 'hash';
$id_or_hash = '"' . $id_or_hash . '"';
} }
/** /**

View file

@ -9,13 +9,13 @@
namespace wishthis; namespace wishthis;
$wishlist = new Wishlist($_GET['hash']); $wishlist = new Wishlist($_GET['hash']);
$wishlist_user = User::getFromID($wishlist->user);
$page = new Page(__FILE__, $wishlist->getTitle()); $page = new Page(__FILE__, $wishlist->getTitle());
$page->stylesheets['wish'] = 'src/assets/css/wish.css'; $page->stylesheets['wish'] = 'src/assets/css/wish.css';
$page->stylesheets['wish-card'] = 'src/assets/css/wish-card.css'; $page->stylesheets['wish-card'] = 'src/assets/css/wish-card.css';
$page->scripts['wish'] = 'src/assets/js/parts/wish.js'; $page->scripts['wish'] = 'src/assets/js/parts/wish.js';
$page->scripts['wishlist-filter-priority'] = 'src/assets/js/parts/wishlist-filter-priority.js'; $page->scripts['wishlist-filter-priority'] = 'src/assets/js/parts/wishlist-filter-priority.js';
$page->scripts['wishlists'] = 'src/assets/js/parts/wishlists.js'; $page->scripts['wishlists'] = 'src/assets/js/parts/wishlists.js';
$wishlist_user = User::getFromID($wishlist->user);
if (!$wishlist->exists) { if (!$wishlist->exists) {
$page->errorDocument(404, $wishlist); $page->errorDocument(404, $wishlist);