Browse Source

check for null value first

closes #96
pull/97/head
Aaron Parecki 4 years ago
parent
commit
2cf50a695e
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/XRay/Formats/Mf2.php

+ 1
- 1
lib/XRay/Formats/Mf2.php View File

@ -427,7 +427,7 @@ class Mf2 extends Format {
// If there is content, always return the plaintext content, and return HTML content if it's different
if($content) {
$content = self::parseHTMLValue('content', $item);
if($content['text'] || $content['html']) {
if($content && ($content['text'] || $content['html'])) {
$data['content']['text'] = $content['text'];
if(isset($content['html']))
$data['content']['html'] = $content['html'];

Loading…
Cancel
Save