Index: trunk/phase3/includes/WebRequest.php |
— | — | @@ -1199,7 +1199,7 @@ |
1200 | 1200 | * @param $wasPosted Bool: whether to treat the data as POST |
1201 | 1201 | * @param $session Mixed: session array or null |
1202 | 1202 | */ |
1203 | | - public function __construct( $data, $wasPosted = false, $session = null ) { |
| 1203 | + public function __construct( $data = array(), $wasPosted = false, $session = null ) { |
1204 | 1204 | if( is_array( $data ) ) { |
1205 | 1205 | $this->data = $data; |
1206 | 1206 | } else { |