Fix wishlist not found
This commit is contained in:
parent
ce744e7278
commit
4c5bafe1b2
2 changed files with 2 additions and 3 deletions
|
@ -23,8 +23,7 @@ class Wishlist
|
|||
if (is_numeric($id_or_hash)) {
|
||||
$column = 'id';
|
||||
} elseif (is_string($id_or_hash)) {
|
||||
$column = 'hash';
|
||||
$id_or_hash = '"' . $id_or_hash . '"';
|
||||
$column = 'hash';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -9,13 +9,13 @@
|
|||
namespace wishthis;
|
||||
|
||||
$wishlist = new Wishlist($_GET['hash']);
|
||||
$wishlist_user = User::getFromID($wishlist->user);
|
||||
$page = new Page(__FILE__, $wishlist->getTitle());
|
||||
$page->stylesheets['wish'] = 'src/assets/css/wish.css';
|
||||
$page->stylesheets['wish-card'] = 'src/assets/css/wish-card.css';
|
||||
$page->scripts['wish'] = 'src/assets/js/parts/wish.js';
|
||||
$page->scripts['wishlist-filter-priority'] = 'src/assets/js/parts/wishlist-filter-priority.js';
|
||||
$page->scripts['wishlists'] = 'src/assets/js/parts/wishlists.js';
|
||||
$wishlist_user = User::getFromID($wishlist->user);
|
||||
|
||||
if (!$wishlist->exists) {
|
||||
$page->errorDocument(404, $wishlist);
|
||||
|
|
Loading…
Reference in a new issue