From 455a1e5033b4607ece1cb1c75cd26cbdbc8446c4 Mon Sep 17 00:00:00 2001 From: evarisk-micka Date: Fri, 30 Aug 2024 09:55:16 +0200 Subject: [PATCH] #299 [Map] fix: fatal if empty object linked --- view/map.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/map.php b/view/map.php index 9c0be27..918f6e1 100644 --- a/view/map.php +++ b/view/map.php @@ -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; }