From 95c7f083d4ef89df0dd60b280ad0475d77ea53af Mon Sep 17 00:00:00 2001 From: Manfred Date: Wed, 23 Feb 2022 16:17:13 +0100 Subject: [PATCH] CSV-Export aus dem Reporting mit Komma statt Punkt --- include/statistik.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/statistik.class.php b/include/statistik.class.php index 3075250b5..eab9f930d 100644 --- a/include/statistik.class.php +++ b/include/statistik.class.php @@ -553,6 +553,12 @@ class statistik extends basis_db { $name = $this->db_field_name($this->data,$spalte); $this->html.= ''.$this->convert_html_chars($row->$name).''; + // Umwandeln von Punkt in Komma bei Float-Werten + if (is_numeric($row->$name)) + { + if (strpos($row->$name,'.') != false) + $row->$name = number_format($row->$name,2,",",""); + } $this->csv.= '"'.$row->$name.'",'; }