Merge pull request #8887 from annando/prevent-null

Prevent "null" value when calling "getTagsFromUrl"
This commit is contained in:
Hypolite Petovan 2020-07-16 09:15:46 -04:00 committed by GitHub
commit 8411c13d51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -544,7 +544,7 @@ class Feed
if (!empty($contact["fetch_further_information"]) && ($contact["fetch_further_information"] == 3)) { if (!empty($contact["fetch_further_information"]) && ($contact["fetch_further_information"] == 3)) {
if (empty($taglist)) { if (empty($taglist)) {
$taglist = PageInfo::getTagsFromUrl($item["plink"], $preview, $contact["ffi_keyword_denylist"]); $taglist = PageInfo::getTagsFromUrl($item["plink"], $preview, $contact["ffi_keyword_denylist"] ?? '');
} }
$item["body"] .= "\n" . self::tagToString($taglist); $item["body"] .= "\n" . self::tagToString($taglist);
} else { } else {