diff --git a/module/projectrelease/model.php b/module/projectrelease/model.php index 57dc9aed5d..0b164aac46 100644 --- a/module/projectrelease/model.php +++ b/module/projectrelease/model.php @@ -43,8 +43,8 @@ class projectreleaseModel extends model { foreach($builds as $build) { - $branch = explode(',', $build->branch); - if(is_array($branch)) $branches += $branch; + $branchIdList = explode(',', $build->branch); + foreach($branchIdList as $branchID) $branches[$branchID] = $branchID; } } diff --git a/module/release/model.php b/module/release/model.php index ad4bd7fa29..a9b075ac89 100644 --- a/module/release/model.php +++ b/module/release/model.php @@ -39,8 +39,8 @@ class releaseModel extends model { foreach($builds as $build) { - $branch = explode(',', $build->branch); - if(is_array($branch)) $branches += $branch; + $branchIdList = explode(',', $build->branch); + foreach($branchIdList as $branchID) $branches[$branchID] = $branchID; } }