Fix polling of feeds

This commit is contained in:
Michael 2024-09-12 12:41:23 +00:00
parent 844eafa47a
commit 44f4876d58

View file

@ -183,7 +183,7 @@ class OnePoll
return false;
}
if (strpos($curlResult->getContentType(), 'xml') !== false) {
if (strpos($curlResult->getContentType(), 'xml') === false) {
Logger::notice('Unexpected content type.', ['id' => $contact['id'], 'url' => $contact['poll'], 'content-type' => $curlResult->getContentType()]);
return false;
}