From: Seamus Lee Date: Sat, 8 Jun 2019 08:57:11 +0000 (+1000) Subject: Incorporate Tim's Cleanup X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fcfcd0f7860f803d244d825d59a851aff8212e3f;p=civicrm-core.git Incorporate Tim's Cleanup --- diff --git a/CRM/Utils/System/Base.php b/CRM/Utils/System/Base.php index e913fee17c..2e675243c5 100644 --- a/CRM/Utils/System/Base.php +++ b/CRM/Utils/System/Base.php @@ -951,10 +951,7 @@ abstract class CRM_Utils_System_Base { * @param \Psr\Http\Message\ResponseInterface $response */ public function sendResponse(\Psr\Http\Message\ResponseInterface $response) { - if (function_exists('http_response_code')) { - // PHP 5.4+ - http_response_code($response->getStatusCode()); - } + http_response_code($response->getStatusCode()); foreach ($response->getHeaders() as $name => $values) { CRM_Utils_System::setHttpHeader($name, implode(', ', (array) $values)); }