Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1267c36

Browse files
authored
Update Product.php
1 parent 5d36a1e commit 1267c36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/Entity/Product.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public function getColors()
254254
*/
255255
public function getBrand()
256256
{
257-
return $this->data['brand'];
257+
return (isset($this->data['brand'])) ? $this->data['brand'] : null;
258258
}
259259

260260
/**
@@ -284,4 +284,4 @@ public function getDiscussion()
284284
return $this->discussion;
285285
}
286286

287-
}
287+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /