fix: error when saving wish without priority
This commit is contained in:
parent
bb87e9ca1e
commit
38c8ed4ca5
1 changed files with 4 additions and 0 deletions
|
@ -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 = '';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue