From fcfcd0f7860f803d244d825d59a851aff8212e3f Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sat, 8 Jun 2019 18:57:11 +1000 Subject: [PATCH] Incorporate Tim's Cleanup --- CRM/Utils/System/Base.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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)); } -- 2.25.1