summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/kolab_api_service.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/kolab_api_service.php b/lib/kolab_api_service.php
index e3c66c5..f19486a 100644
--- a/lib/kolab_api_service.php
+++ b/lib/kolab_api_service.php
@@ -197,6 +197,10 @@ 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);
+ $delta = str_replace(',', '.', $delta);
+
Log::trace("Score for $object_name type " . $elem['name'] . ": $elem_score ($commonalities/$differences/$delta)");
// Compare last and current element (object type) score