diff options
Diffstat (limited to 'lib/classes')
| -rw-r--r-- | lib/classes/JsonApi/Schemas/Forum/Posting.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/classes/JsonApi/Schemas/Forum/Posting.php b/lib/classes/JsonApi/Schemas/Forum/Posting.php index 1622e2b..a154dab 100644 --- a/lib/classes/JsonApi/Schemas/Forum/Posting.php +++ b/lib/classes/JsonApi/Schemas/Forum/Posting.php @@ -159,8 +159,8 @@ class Posting extends SchemaProvider { $attributes = []; - if (preg_match('/^(.*)(<admin_msg.*?)$/s', $content, $matches)) { - $adminTag = $matches[2]; + if (preg_match('/(<admin_msg.*?)$/s', $content, $matches)) { + $adminTag = $matches[1]; // Extract attributes if (preg_match_all('/(\w+)="([^"]*)"/', $adminTag, $attrMatches, PREG_SET_ORDER)) { |
