Merge pull request #119 from webbuilders-group/empty-rels-fix

BUGFIX: Fixed crash when the relationship has no parents
This commit is contained in:
Daniel Hensby 2016-05-24 21:29:24 +01:00
commit 5ced034b33
1 changed files with 4 additions and 0 deletions

View File

@ -557,6 +557,10 @@ abstract class SearchIndex extends ViewableData
$ids = $sql->execute()->column();
}
if (empty($ids)) {
break;
}
}
SearchVariant::activate_state($current);