check array path

This commit is contained in:
zotlabs 2020-07-06 21:05:31 -07:00
parent 48f97a5044
commit 61953c11ca

View file

@ -2989,7 +2989,7 @@ class Activity {
}
}
if (array_key_exists('source',$act) && array_key_exists('mediaType',$act['source'])) {
if (array_path_exists('source/mediaType',$act) && array_path_exists('source/content',$act)) {
if ($act['source']['mediaType'] === 'text/bbcode') {
$content['bbcode'] = purify_html($act['source']['content']);
}