diff --git a/assets/plugins/evocollection/tree.php b/assets/plugins/evocollection/tree.php index 96e5088..a3c2477 100644 --- a/assets/plugins/evocollection/tree.php +++ b/assets/plugins/evocollection/tree.php @@ -4,8 +4,8 @@ $idsa = array(); foreach($configuration as $conf) { - if (($conf['type']=='ids') and ($conf[value]) and ($conf['show_child']==0)) $idsa[]=$conf[value]; - if (($conf['type']=='template') and ($conf[value]) and ($conf['show_child']==0)) $idsa[] = $modx->db->getValue('Select GROUP_CONCAT(id) from '.$modx->getFullTableName('site_content').' where template in ('.$conf[value].')'); + if (($conf['type']=='ids') and ($conf['value']) and ($conf['show_child']==0)) $idsa[]=$conf['value']; + if (($conf['type']=='template') and ($conf['value']) and ($conf['show_child']==0)) $idsa[] = $modx->db->getValue('Select GROUP_CONCAT(id) from '.$modx->getFullTableName('site_content').' where template in ('.$conf['value'].')'); } $ids = implode(',',$idsa); if (!$ids) return; @@ -24,4 +24,4 @@ } -$e->output(serialize($ph)); \ No newline at end of file +$e->output(serialize($ph));