From: Antoine Musso Date: Mon, 9 Jan 2012 10:42:44 +0000 (+0000) Subject: FauxRequest now has empty data per default X-Git-Tag: 1.31.0-rc.0~25406 X-Git-Url: http://git.cyclocoop.org/%22%20.%20%20%20%24self2%20.%20%20%20%22&var_mode_affiche=boucle?a=commitdiff_plain;h=ffbb4a0ed21afc96dfc70d576bd853f4e0734137;p=lhc%2Fweb%2Fwiklou.git FauxRequest now has empty data per default --- diff --git a/includes/WebRequest.php b/includes/WebRequest.php index 65fe0c7b5e..af47d60a3c 100644 --- a/includes/WebRequest.php +++ b/includes/WebRequest.php @@ -1199,7 +1199,7 @@ class FauxRequest extends WebRequest { * @param $wasPosted Bool: whether to treat the data as POST * @param $session Mixed: session array or null */ - public function __construct( $data, $wasPosted = false, $session = null ) { + public function __construct( $data = array(), $wasPosted = false, $session = null ) { if( is_array( $data ) ) { $this->data = $data; } else {