Skip to content

Commit

Permalink
Update Product.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Swader authored Aug 16, 2017
1 parent 5d36a1e commit 1267c36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Entity/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public function getColors()
*/
public function getBrand()
{
return $this->data['brand'];
return (isset($this->data['brand'])) ? $this->data['brand'] : null;
}

/**
Expand Down Expand Up @@ -284,4 +284,4 @@ public function getDiscussion()
return $this->discussion;
}

}
}

0 comments on commit 1267c36

Please sign in to comment.