diff --git a/EdgeManager/EDataCapture/EDataCapture.php b/EdgeManager/EDataCapture/EDataCapture.php index 0c74f6b..1f01e7e 100644 --- a/EdgeManager/EDataCapture/EDataCapture.php +++ b/EdgeManager/EDataCapture/EDataCapture.php @@ -56,7 +56,7 @@ class EDataCapture { foreach ($this -> post -> param -> data as &$row) { if (($code_type[$row -> code]['type']) === 'float' and is_int($row -> value)) $row -> value = (float) number_format((float) $row -> value, 1, '.', ''); - $check_func = 'is_' . $code_type[$row -> code['type']]; + $check_func = 'is_' . $code_type[$row -> code]['type']; if (!$check_func($row -> value)) { $this -> check_res = 'MISMATCH_TYPE'; return;