Incorporate Tim's Cleanup
authorSeamus Lee <seamuslee001@gmail.com>
Sat, 8 Jun 2019 08:57:11 +0000 (18:57 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Sat, 8 Jun 2019 08:57:11 +0000 (18:57 +1000)
CRM/Utils/System/Base.php

index e913fee17cca7f08710a9b9effdb1f97994a5c34..2e675243c58ad5f7adbd33ad482a2dcd4575bd0d 100644 (file)
@@ -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));
     }