mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[feature/request-class] request_var should return after setting the request object.
If the "dependency injection" mechanism is used there should not be any regular computation of a result value. request_var has to return immediately. PHPBB3-9716
This commit is contained in:
@@ -49,6 +49,7 @@ function request_var($var_name, $default, $multibyte = false, $cookie = false)
|
||||
if ($var_name instanceof phpbb_request_interface)
|
||||
{
|
||||
$request = $var_name;
|
||||
return;
|
||||
}
|
||||
|
||||
// no request class set, create a temporary one ourselves to keep backwards compatability
|
||||
|
Reference in New Issue
Block a user