From: csteipp Date: Thu, 1 May 2014 19:58:46 +0000 (-0700) Subject: Initialize static input to null X-Git-Tag: 1.31.0-rc.0~15922^2 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=a43530d8259716c6f153896d4f4afa26ff4f4f67;p=lhc%2Fweb%2Fwiklou.git Initialize static input to null Followup to I8710844f21d21cbbf28517b0cc25b0713b506bee. Change-Id: I1163deeaf18a31480ed425c7aedd0024591fd4ce --- diff --git a/includes/WebRequest.php b/includes/WebRequest.php index 9bc464ad4d..12cf0d9f97 100644 --- a/includes/WebRequest.php +++ b/includes/WebRequest.php @@ -626,8 +626,8 @@ class WebRequest { * @return string */ public function getRawInput() { - static $input = false; - if ( $input === false ) { + static $input = null; + if ( $input === null ) { $input = file_get_contents( 'php://input' ); } return $input;