X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=blobdiff_plain;f=includes%2FWebResponse.php;h=339b2e3ff0ac6f11851a3b707b9077de7d733325;hb=711fad668b86ff837a31808fe71056b9257e4d80;hp=90b76e33276a6bca71fdee34e9050c59a354b7b3;hpb=3eebaaffcf25c3779725309570de924ad5bea766;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 ); + } } /**