diff --git a/module/chart/model.php b/module/chart/model.php index 07530b6592..d1cd62162c 100644 --- a/module/chart/model.php +++ b/module/chart/model.php @@ -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();