Fix device groups not using cached joins sometimes (#10353)

for device groups that only reference the devices table
This commit is contained in:
Tony Murray
2019-06-20 08:58:35 -05:00
committed by GitHub
parent 1a60c44eb0
commit b5ca6573df

View File

@@ -152,7 +152,7 @@ class QueryBuilderFluentParser extends QueryBuilderParser
*/
protected function joinTables($query)
{
if (empty($this->builder['joins'])) {
if (!isset($this->builder['joins'])) {
$this->generateJoins();
}