diff --git a/src/Article.php b/src/Article.php index f455844..7cdcf51 100644 --- a/src/Article.php +++ b/src/Article.php @@ -21,7 +21,7 @@ class Article } /** - * @param $params Array + * @param $params \Array */ public function setParams($params) { @@ -83,6 +83,9 @@ class Article $temp = array(); /** @var Option\Type\Base $option */ foreach ($this->options as $option) { + if($option->getValue() == '' && $option->getRawValue() == '') { + continue; + } $temp[$option->getId()] = array( 'name' => $option->getName(), 'value' => $option->getValue(),