Prevent user_error when querying object from Solr

This commit is contained in:
Alexandre Saelens 2017-06-14 14:05:40 +12:00
parent 0132a02cf0
commit bd23bb2f0a

View File

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