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