diff --git a/wacko/handler/page/addcomment.php b/wacko/handler/page/addcomment.php index 98452b4f2..43097a08d 100644 --- a/wacko/handler/page/addcomment.php +++ b/wacko/handler/page/addcomment.php @@ -7,9 +7,9 @@ if ($this->has_access('comment') && $this->has_access('read')) { - $body = str_replace("\r", '', rtrim(($_POST['body'] ?? null))); + $body = str_replace("\r", '', rtrim(($_POST['body'] ?? ''))); $error = ''; - $title = trim(($_POST['title'] ?? null)); + $title = trim(($_POST['title'] ?? '')); $parent_id = (int) ($_POST['parent_id'] ?? 0); $watchpage = (int) ($_POST['watchpage'] ?? 0); $noid_publication = (int) ($_POST['noid_publication'] ?? 0);