From 2cf50a695ec9bfd22e669347500e57236ec9f53f Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sat, 11 Apr 2020 13:45:52 -0700 Subject: [PATCH] check for null value first closes #96 --- lib/XRay/Formats/Mf2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/XRay/Formats/Mf2.php b/lib/XRay/Formats/Mf2.php index bd700a8..7774e0b 100644 --- a/lib/XRay/Formats/Mf2.php +++ b/lib/XRay/Formats/Mf2.php @@ -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'];