Skip to content

Commit f472ef1

Browse files
committed
Fix some PHP 8 warnings
1 parent a0be805 commit f472ef1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/serendipity_event_textile/serendipity_event_textile.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
class serendipity_event_textile extends serendipity_event
1010
{
1111
var $title = PLUGIN_EVENT_TEXTILE_NAME;
12+
var $markup_elements = [];
1213

1314
function introspect(&$propbag)
1415
{
@@ -149,7 +150,7 @@ function event_hook($event, &$bag, &$eventData, $addData = null)
149150

150151
$blocks = array();
151152
foreach($preserve_tags as $tag) {
152-
if (preg_match_all('/(<'.$tag.'[^>]?>.*<\/'.$tag.'>)/msU', $eventData[$element] ?? null, $matches )) {
153+
if (preg_match_all('/(<'.$tag.'[^>]?>.*<\/'.$tag.'>)/msU', $eventData[$element] ?? '', $matches )) {
153154
foreach($matches[1] as $match) {
154155
$blocks[] = $match;
155156
}

0 commit comments

Comments
 (0)