* Initialize the variable.

This commit is contained in:
dingguodong
2023-08-04 14:31:33 +08:00
parent 1ec83558e9
commit de10de2be7
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -1947,6 +1947,7 @@ class story extends control
{
$this->loadModel('report');
$this->view->charts = array();
$this->view->datas = array();
if(!empty($_POST))
{
+1 -1
View File
@@ -38,7 +38,7 @@ $fnGenerateTabCharts = function(string $type) use($charts, $lang, $datas)
(
set::type($type),
set::title($lang->story->report->charts[$chartType]),
set::datas($datas[$chartType]),
set::datas($datas[$chartType] ?? null),
set::tableHeaders(array
(
'item' => $lang->story->report->$chartType->item,