diff --git a/src/Worker/OnePoll.php b/src/Worker/OnePoll.php index f720d25692..c7b704bf63 100644 --- a/src/Worker/OnePoll.php +++ b/src/Worker/OnePoll.php @@ -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; }