Merge pull request #444 from alex-dna/2.4

Prevent user_error when querying object from Solr
This commit is contained in:
Daniel Hensby 2017-06-14 13:05:27 +01:00 committed by GitHub
commit ef67447ad5
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }