Skip to content

Commit

Permalink
Fix group type dereference in AttributeManager (NOJIRA)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed Dec 23, 2021
1 parent 16a28a4 commit d4f270e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/Lib/Match/AttributeManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public function parseFromJSON(\stdClass $json) {
// We have a set of objects of type $k. We group on type.
foreach($v as $vobject) {
// Group is default unless type is set
$g = !empty($vobject->type) ? $vobject->type : '_default';
$g = !empty($vobject['type']) ? $vobject['type'] : '_default';

foreach($vobject as $vk => $vv) {
if($vk == 'type') {
Expand Down

0 comments on commit d4f270e

Please sign in to comment.