+ chartModel: decode the lang property of a chart.

This commit is contained in:
liugang
2023-11-03 14:40:39 +08:00
parent 3e8b10e961
commit 754b067448
+3
View File
@@ -117,6 +117,9 @@ class chartModel extends model
if($chart->sql == null) $chart->sql = '';
if($chart->sql) $chart->sql = trim(str_replace(';', '', $chart->sql));
$chart->langs = json_decode($chart->langs, true);
if($chart->langs === null) $chart->langs = array();
$chart->filters = json_decode($chart->filters, true);
if($chart->filters === null) $chart->filters = array();