[various] Fix PHP 8 deprecation warnings

This commit is contained in:
Hypolite Petovan 2022-11-19 19:19:30 -05:00
parent e8daa6b97d
commit f4130a9724
4 changed files with 6 additions and 7 deletions

View file

@ -107,7 +107,7 @@ function wppost_hook_fork(App $a, array &$b)
$post = $b['data'];
if ($post['deleted'] || $post['private'] || ($post['created'] !== $post['edited']) ||
!strstr($post['postopts'], 'wppost') || ($post['parent'] != $post['id'])) {
!strstr($post['postopts'] ?? '', 'wppost') || ($post['parent'] != $post['id'])) {
$b['execute'] = false;
return;
}