diff --git a/app/Controller/GalaxiesController.php b/app/Controller/GalaxiesController.php index 522239904..b97e65a68 100644 --- a/app/Controller/GalaxiesController.php +++ b/app/Controller/GalaxiesController.php @@ -350,10 +350,15 @@ class GalaxiesController extends AppController public function selectCluster($target_id, $target_type = 'event', $selectGalaxy = false) { $conditions = array(); - $conditions = array('OR' => array( - 'GalaxyCluster.published' => true, - 'GalaxyCluster.default' => true, - )); + $conditions = array( + 'OR' => array( + 'GalaxyCluster.published' => true, + 'GalaxyCluster.default' => true, + ), + 'AND' => array( + 'GalaxyCluster.deleted' => false, + ) + ); if ($selectGalaxy) { $conditions['GalaxyCluster.galaxy_id'] = $selectGalaxy; }