Skip to content

Commit

Permalink
Merge pull request #300 from evarisk-micka/fix_map
Browse files Browse the repository at this point in the history
#299 [Map] fix: fatal if empty object linked
  • Loading branch information
evarisk-micka authored Aug 30, 2024
2 parents c501d0b + 455a1e5 commit b181e77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view/map.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
$objectLinked = array_shift($projects);
}

if ((!empty($fromId) && $objectLinked->entity != $conf->entity) || ($source == 'pwa' && empty($objectLinked->opp_status))) {
if ((!empty($fromId) && $objectLinked->entity != $conf->entity) || ($source == 'pwa' && empty($objectLinked->opp_status)) || empty($objectLinked)) {
continue;
}

Expand Down

0 comments on commit b181e77

Please sign in to comment.