Commit 4632a33b authored by Ghislain Loas's avatar Ghislain Loas

fix php compat

parent 5ebf4cbb
......@@ -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