villes and thème of active progs in home #1435
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user