Fix NULL value in wish description

This commit is contained in:
Jay 2022-03-09 20:23:09 +01:00
parent e96edb4880
commit 825ab49082
2 changed files with 2 additions and 2 deletions

View file

@ -54,7 +54,7 @@ switch ($_SERVER['REQUEST_METHOD']) {
$wishlist_id = $_POST['wishlist_id'];
$wish_title = trim($_POST['wish_title']);
$wish_description = $_POST['wish_description'] ?: 'NULL';
$wish_description = $_POST['wish_description'] ?: '';
$wish_url = trim($_POST['wish_url']);
$wish_priority = $_POST['wish_priority'] ?: 'NULL';

View file

@ -16,7 +16,7 @@ $page = new Page(__FILE__, $wish->title);
if ('POST' === $_SERVER['REQUEST_METHOD'] && count($_POST) >= 0) {
$wish_id = $_POST['wish_id'];
$wish_title = trim($_POST['wish_title']);
$wish_description = $_POST['wish_description'] ?: 'NULL';
$wish_description = $_POST['wish_description'] ?: '';
$wish_image = trim($_POST['wish_image']);
$wish_url = trim($_POST['wish_url']);
$wish_priority = $_POST['wish_priority'] ?: 'NULL';