Skip to content

Commit

Permalink
Tighten a conditional check when denormalizing an ArticleVor
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcmoulton committed Dec 19, 2024
1 parent 985566f commit 41596db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Serializer/ArticleVoRNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected function denormalizeArticle(
array $context = []
) : ArticleVersion {

if (empty($data['elifeAssessment'])) {
if (empty($data['elifeAssessment']) || !isset($data['elifeAssessment'])) {
$elifeAssessmentTitle = null;
$elifeAssessmentScietyUri = null;
$elifeAssessmentArticleSection = null;
Expand Down

0 comments on commit 41596db

Please sign in to comment.