Commit eb6ac849 authored by Ghislain Loas's avatar Ghislain Loas

Merge branch 'stable' into origin-hotline-master

parents 2bb7b22e 4632a33b
......@@ -36,7 +36,8 @@ trait Trait_HasManyDomaines {
public function getDomaines() {
return empty($domains = $this->getDomaineIdsAsArray())
$domains = $this->getDomaineIdsAsArray();
return empty($domains)
? []
: Class_Catalogue::findAllBy(['id_catalogue' => $domains]);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment