villes and thème of active progs in home #1435

This commit is contained in:
2021-08-25 23:07:04 +02:00
parent 3ddd9d9427
commit 488766bf3d
3 changed files with 6 additions and 6 deletions

View File

@@ -33,7 +33,7 @@ class ViewsComputedProjetsReference extends FieldPluginBase {
$projets = $node->get('computed_projets_references')->getvalue();
}
return count($projets) . ' villes';
return count($projets) ? count($projets) . ' villes' : null;
}
/**

View File

@@ -33,7 +33,7 @@ class ViewsComputedThemesReference extends FieldPluginBase {
$themes = $node->get('computed_themes_references')->getvalue();
}
return count($themes) . ' themes';
return count($themes) ? count($themes) . ' thèmes' : null;
}
/**