diff --git a/src/api/wishlists.php b/src/api/wishlists.php index 137f95a0..c7077368 100644 --- a/src/api/wishlists.php +++ b/src/api/wishlists.php @@ -84,6 +84,7 @@ switch ($_SERVER['REQUEST_METHOD']) { $mjml ); + $user = new User($wishlist['user']); $emailRequest = new Email($user->email, __('Wish request'), $mjml); $emailRequest->send();