fix: error when saving wish without priority

This commit is contained in:
grandeljay 2023-08-17 10:50:59 +02:00
parent bb87e9ca1e
commit 38c8ed4ca5

View file

@ -98,6 +98,10 @@ switch ($_SERVER['REQUEST_METHOD']) {
$wish_priority = filter_input(INPUT_POST, 'wish_priority', FILTER_SANITIZE_NUMBER_INT); $wish_priority = filter_input(INPUT_POST, 'wish_priority', FILTER_SANITIZE_NUMBER_INT);
$wish_is_purchasable = isset($_POST['wish_is_purchasable']); $wish_is_purchasable = isset($_POST['wish_is_purchasable']);
if ('' === $wish_priority) {
$wish_priority = null;
}
if (Wish::NO_IMAGE === $wish_image) { if (Wish::NO_IMAGE === $wish_image) {
$wish_image = ''; $wish_image = '';
} }