X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FWebResponse.php;h=339b2e3ff0ac6f11851a3b707b9077de7d733325;hb=cc757af0e057a562fd5fb485627f8ff46494fc12;hp=90b76e33276a6bca71fdee34e9050c59a354b7b3;hpb=6e71511047de1f6ed8de40c9b2cb1a860ab8a716;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WebResponse.php b/includes/WebResponse.php index 90b76e3327..339b2e3ff0 100644 --- a/includes/WebResponse.php +++ b/includes/WebResponse.php @@ -39,7 +39,11 @@ class WebResponse { * @param null|int $http_response_code Forces the HTTP response code to the specified value. */ public function header( $string, $replace = true, $http_response_code = null ) { - header( $string, $replace, $http_response_code ); + if ( $http_response_code ) { + header( $string, $replace, $http_response_code ); + } else { + header( $string, $replace ); + } } /**