mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Prevent user_error when querying object from Solr
This commit is contained in:
parent
0132a02cf0
commit
bd23bb2f0a
@ -18,7 +18,7 @@ class BlogPostFilter extends DataExtension
|
||||
{
|
||||
$stage = Versioned::current_stage();
|
||||
|
||||
if (Controller::curr() instanceof LeftAndMain) {
|
||||
if (Controller::has_curr() && Controller::curr() instanceof LeftAndMain) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user