Skip to content

Commit

Permalink
fix: check for existing array key
Browse files Browse the repository at this point in the history
  • Loading branch information
wurstbrot committed Nov 11, 2023
1 parent aaff6d1 commit 9d2788c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yaml-generation/generateDimensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
}
}

if (!array_key_exists("openCRE", $activity["references"]["openCRE"])) {
if (!array_key_exists("openCRE", $activity["references"])) {
$dimensionsAggregated[$dimension][$subdimension][$activityName]["references"]["openCRE"] = array();
$dimensionsAggregated[$dimension][$subdimension][$activityName]["references"]["openCRE"][] = "https://www.opencre.org/rest/v1/standard/DevSecOps+Maturity+Model+(DSOMM)/${subdimension}/" + $dimensionsAggregated[$dimension][$subdimension][$activityName]["uuid"];
}
Expand Down

0 comments on commit 9d2788c

Please sign in to comment.