File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -70,12 +70,12 @@ public function __construct(\phpbb\request\type_cast_helper_interface $type_cast
7070
7171 foreach ($ this ->super_globals as $ const => $ super_global )
7272 {
73- $ this ->input [$ const ] = isset ($ GLOBALS [$ super_global ]) ? $ GLOBALS [$ super_global ] : array ();
73+ $ this ->input [$ const ] = isset ($ GLOBALS [$ super_global ]) ? ( array ) $ GLOBALS [$ super_global ] : array ();
7474 }
7575
7676 // simulate request_order = GP
77- $ this ->original_request = $ this ->input [\phpbb \request \request_interface::REQUEST ];
78- $ this ->input [\phpbb \request \request_interface::REQUEST ] = $ this ->input [\phpbb \request \request_interface::POST ] + $ this ->input [\phpbb \request \request_interface::GET ];
77+ $ this ->original_request = ( array ) $ this ->input [\phpbb \request \request_interface::REQUEST ];
78+ $ this ->input [\phpbb \request \request_interface::REQUEST ] = ( array ) $ this ->input [\phpbb \request \request_interface::POST ] + ( array ) $ this ->input [\phpbb \request \request_interface::GET ];
7979
8080 if ($ disable_super_globals )
8181 {
You can’t perform that action at this time.
0 commit comments