= $assocUnit['associationType'] ?>
-
diff --git a/collections/editor/occurrenceeditor.php b/collections/editor/occurrenceeditor.php
index 9efba65d0d..d59cdbdadc 100644
--- a/collections/editor/occurrenceeditor.php
+++ b/collections/editor/occurrenceeditor.php
@@ -518,7 +518,7 @@ function requestImage(){
@@ -435,7 +441,7 @@ function initializeMap(){
$relID = $assocArr['objectID'];
$relUrl = $assocArr['resourceurl'];
if(!$relUrl && $assocArr['occidassoc']) $relUrl = $GLOBALS['CLIENT_ROOT'].'/collections/individual/index.php?occid='.$assocArr['occidassoc'];
- if($relUrl) $relID = '
' . $relID . '';
+ if($relUrl) $relID = '
' . ($relID ? $relID : $relUrl) . '';
if($relID) echo $relID;
if($assocArr['sciname']) echo ' [' . $assocArr['sciname'] . ']';
echo '
';
diff --git a/collections/map/rpc/searchCollections.php b/collections/map/rpc/searchCollections.php
index 2667a5fe84..440363957a 100644
--- a/collections/map/rpc/searchCollections.php
+++ b/collections/map/rpc/searchCollections.php
@@ -50,7 +50,7 @@
$host = false;
if(isset($SERVER_HOST)) {
- $host = ($SERVER_HOST === '127.0.0.1' || $SERVER_HOST === 'localhost'? "http://": "https://") . $SERVER_HOST . $CLIENT_ROOT;
+ $host = (str_contains($SERVER_HOST, '127.0.0.1') || str_contains($SERVER_HOST, 'localhost')? "http://": "https://") . $SERVER_HOST . $CLIENT_ROOT;
}
foreach ($coordArr as $collName => $coll) {
diff --git a/collections/search/index.php b/collections/search/index.php
index 753343f320..58e88ed81d 100644
--- a/collections/search/index.php
+++ b/collections/search/index.php
@@ -217,7 +217,8 @@