Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
Passing null to parameter #1 ($string) of type string is deprecated
  • Loading branch information
vendeeglobe committed May 8, 2022
1 parent 4b28701 commit 1404ede
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wacko/handler/page/addcomment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1404ede

Please sign in to comment.