From 00ac20159652b9a324aa819f86eabfa2ac08bbf5 Mon Sep 17 00:00:00 2001 From: Manfred Date: Wed, 14 Sep 2022 15:56:01 +0200 Subject: [PATCH] Text-Inputs in eckigen Klammern werden als Array interpretiert --- include/statistik.class.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/statistik.class.php b/include/statistik.class.php index eab9f930d..15624de26 100644 --- a/include/statistik.class.php +++ b/include/statistik.class.php @@ -524,6 +524,14 @@ class statistik extends basis_db } foreach($_REQUEST as $name=>$value) { + // Inputs, die in eckigen Klammern stehen, werden als Array interpretiert + if (substr($value, 0, 1) == '[' && substr($value, -1) == ']') + { + //Eckige Klammern entfernen und String aufsplitten + $value = substr($value, 1); + $value = substr($value, 0, -1); + $value = explode(',', $value); + } if (is_array($value)) { $in = $this->db_implode4SQL($value); @@ -532,7 +540,6 @@ class statistik extends basis_db else $sql = str_replace('$'.$name,$this->db_add_param($value),$sql); } - if($this->data = $this->db_query($sql)) { $this->html.= '';