diff --git a/hesabixCore/src/Service/Explore.php b/hesabixCore/src/Service/Explore.php index 71a7a2f..a759dd7 100644 --- a/hesabixCore/src/Service/Explore.php +++ b/hesabixCore/src/Service/Explore.php @@ -214,11 +214,14 @@ class Explore 'name' => $item->getUnit()->getName(), 'floatNumber' => $item->getUnit()->getFloatNumber(), ], - 'cat'=>$item->getCat()->getName() ]; if ($des) { $result['des'] = $des; } + $result['cat'] = ''; + if ($item->getCat()) { + $result['cat'] = $item->getCat()->getName(); + } return $result; }