mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
[bugfix] $request == null breaks
The $request incoming as null was not properly detected by the if/elseif structure.
This commit is contained in:
parent
b81ac41b5d
commit
a071672b48
@ -651,7 +651,7 @@ class Security extends Controller implements TemplateGlobalProvider
|
|||||||
{
|
{
|
||||||
if ($request) {
|
if ($request) {
|
||||||
$this->setRequest($request);
|
$this->setRequest($request);
|
||||||
} elseif ($request) {
|
} elseif ($this->getRequest()) {
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
} else {
|
} else {
|
||||||
throw new HTTPResponse_Exception("No request available", 500);
|
throw new HTTPResponse_Exception("No request available", 500);
|
||||||
|
Loading…
Reference in New Issue
Block a user