diff --git a/plugins/serendipity_event_nl2br/serendipity_event_nl2br.php b/plugins/serendipity_event_nl2br/serendipity_event_nl2br.php index 640b8333..9d3f9266 100644 --- a/plugins/serendipity_event_nl2br/serendipity_event_nl2br.php +++ b/plugins/serendipity_event_nl2br/serendipity_event_nl2br.php @@ -624,6 +624,10 @@ p.wl_notopbottom { $tagstack = array(); $isolation_flag = false; + if (! is_array($textarray)) { + return $text; + } + for ($i=0; $i < count($textarray); $i++) {