Initialize static input to null
authorcsteipp <csteipp@wikimedia.org>
Thu, 1 May 2014 19:58:46 +0000 (12:58 -0700)
committercsteipp <csteipp@wikimedia.org>
Thu, 1 May 2014 19:58:46 +0000 (12:58 -0700)
Followup to I8710844f21d21cbbf28517b0cc25b0713b506bee.

Change-Id: I1163deeaf18a31480ed425c7aedd0024591fd4ce

includes/WebRequest.php

index 9bc464a..12cf0d9 100644 (file)
@@ -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;