Fix notice

This commit is contained in:
Michael 2020-09-20 17:47:44 +00:00
부모 6c7bce86fe
커밋 fe825b3634
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제

파일 보기

@ -142,6 +142,10 @@ class PageInfo
$text .= " title='" . $data['title'] . "'";
}
if (empty($data['text'])) {
$data['text'] = '';
}
// Only embedd a picture link when it seems to be a valid picture ("width" is set)
if (!empty($data['images']) && !empty($data['images'][0]['width'])) {
$preview = str_replace(['[', ']'], ['[', ']'], htmlentities($data['images'][0]['src'], ENT_QUOTES, 'UTF-8', false));
@ -163,7 +167,7 @@ class PageInfo
}
}
$text .= ']' . $data['text'] ?? '' . '[/attachment]';
$text .= ']' . $data['text'] . '[/attachment]';
$hashtags = '';
if (!empty($data['keywords'])) {