From be82f90fd893bf3bb31049b19b9196d3b2756f04 Mon Sep 17 00:00:00 2001 From: wangyuting2 <851424971@qq.com> Date: Fri, 28 Apr 2023 15:00:18 +0800 Subject: [PATCH] * Fix chart langs bug. --- module/chart/control.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/chart/control.php b/module/chart/control.php index 89803baf81..086af795ac 100644 --- a/module/chart/control.php +++ b/module/chart/control.php @@ -182,6 +182,7 @@ class chart extends control $sql = str_replace(';', '', "$post->sql"); $fields = $post->fieldSettings; $langs = !empty($post->langs) ? $post->langs : array(); + if(is_string($langs)) $langs = json_decode($langs, true); switch($type) {