Ignore:
Timestamp:
Dec 27, 2022, 2:34:03 PM (23 months ago)
Author:
chronos
Message:
  • Fixed: Run with PHP 8.1.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HTML/BBCodeParser2.php

    r815 r887  
    482482        foreach ($this->_tagArray as $tag) {
    483483            $prevTag = end($newTagArray);
     484
     485            // TODO: why prevTag cann by type bool?
     486            if (!is_array($prevTag)) continue;
     487
    484488            switch ($tag['type']) {
    485489            case 0:
     
    500504                    $openTags[] = $child['tag'];
    501505                }
     506
    502507                if ($prevTag['type'] === 0) {
    503508                    $tag['text'] = $prevTag['text'].$tag['text'];
Note: See TracChangeset for help on using the changeset viewer.