mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #7829 from Firesphere/patch-3
[bugfix] $request == null breaks
This commit is contained in:
commit
02ec0b8375
@ -651,7 +651,7 @@ class Security extends Controller implements TemplateGlobalProvider
|
||||
{
|
||||
if ($request) {
|
||||
$this->setRequest($request);
|
||||
} elseif ($request) {
|
||||
} elseif ($this->getRequest()) {
|
||||
$request = $this->getRequest();
|
||||
} else {
|
||||
throw new HTTPResponse_Exception("No request available", 500);
|
||||
|
Loading…
x
Reference in New Issue
Block a user