summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/kolab_api_service.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/kolab_api_service.php b/lib/kolab_api_service.php
index 858e643..d0d4f26 100644
--- a/lib/kolab_api_service.php
+++ b/lib/kolab_api_service.php
@@ -201,6 +201,9 @@ abstract class kolab_api_service
$elem_score .= ':' . $elem_keys_score . ':' . $elem_values_score;
+ // fix decimal separator for score_compare() and consistent log (#4799)
+ $elem_score = str_replace(',', '.', $elem_score);
+
// Log::trace("\$object_class not in \$ref_class (" . $elem['key'] . "): " . implode(", ", $_object_class));
// Log::trace("\$ref_class not in \$object_class (" . $elem['key'] . "): " . implode(", ", $_ref_class));
Log::trace("Score for $object_name type " . $elem['name'] . ": " . $elem_score . " (" . $commonalities . "/" . $differences . ")");