This commit is contained in:
Ludovic CANDELLIER
2021-04-05 22:31:15 +02:00
parent e6e86767d3
commit 0620ab19c4
12 changed files with 167 additions and 137 deletions

View File

@@ -58,7 +58,8 @@ class Varieties
public static function getTagsByVariety($variety)
{
return $variety->tags->pluck('id')->toArray();
$tags = $variety->tags;
return $tags ? $tags->pluck('id')->toArray() : null;
}