mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 05:23:41 +00:00
Merge pull request #1324 from MrPetovan/bug/deprecated
[various] Address a couple of PHP 8.1 notices
This commit is contained in:
commit
1c5787946f
2 changed files with 2 additions and 2 deletions
|
@ -126,7 +126,7 @@ function dwpost_send(App $a, array &$b)
|
|||
return;
|
||||
}
|
||||
|
||||
if (!strstr($b['postopts'],'dwpost')) {
|
||||
if (strpos($b['postopts'] ?? '', 'dwpost') === false) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -366,7 +366,7 @@ function statusnet_hook_fork(App $a, array &$b)
|
|||
}
|
||||
} else {
|
||||
// Comments are never exported when we don't import the GNU Social timeline
|
||||
if (!strstr($post['postopts'], 'statusnet') || ($post['parent'] != $post['id']) || $post['private']) {
|
||||
if (strpos($post['postopts'] ?? '', 'statusnet') === false || ($post['parent'] != $post['id']) || $post['private']) {
|
||||
$b['execute'] = false;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue