From 307d24065dd8761b513d3cf67547a5cd012cedf3 Mon Sep 17 00:00:00 2001 From: Michael McAndrew Date: Thu, 15 Mar 2018 23:53:16 +0000 Subject: [PATCH] If we exit with a status > 0, return a 500 http response code --- CRM/Utils/System.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Utils/System.php b/CRM/Utils/System.php index ca0f9a9b9f..f834b852fd 100644 --- a/CRM/Utils/System.php +++ b/CRM/Utils/System.php @@ -1396,6 +1396,10 @@ class CRM_Utils_System { * (optional) Code with which to exit. */ public static function civiExit($status = 0) { + + if($status > 0){ + http_response_code(500); + } // move things to CiviCRM cache as needed CRM_Core_Session::storeSessionObjects(); -- 2.25.1