From: Bryan Tong Minh Date: Sat, 6 Sep 2008 11:35:09 +0000 (+0000) Subject: Give 3rd parameter of FauxRequest constructor default value. X-Git-Tag: 1.31.0-rc.0~45444 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=51f5214937ce984f05806fa838781da474a66dc2;p=lhc%2Fweb%2Fwiklou.git Give 3rd parameter of FauxRequest constructor default value. --- diff --git a/includes/WebRequest.php b/includes/WebRequest.php index 2c2a049e79..949901fdaa 100644 --- a/includes/WebRequest.php +++ b/includes/WebRequest.php @@ -664,7 +664,7 @@ class FauxRequest extends WebRequest { * fake GET/POST values * @param $wasPosted Bool: whether to treat the data as POST */ - function FauxRequest( $data, $wasPosted = false, $session ) { + function FauxRequest( $data, $wasPosted = false, $session = null ) { if( is_array( $data ) ) { $this->data = $data; } else { @@ -672,7 +672,7 @@ class FauxRequest extends WebRequest { } $this->wasPosted = $wasPosted; $this->headers = array(); - $this->session = $session; + $this->session = $session ? $session : array(); } function notImplemented( $method ) {