diff --git a/module/story/control.php b/module/story/control.php index ce133e6961..39aa73bb84 100755 --- a/module/story/control.php +++ b/module/story/control.php @@ -1947,6 +1947,7 @@ class story extends control { $this->loadModel('report'); $this->view->charts = array(); + $this->view->datas = array(); if(!empty($_POST)) { diff --git a/module/story/ui/report.html.php b/module/story/ui/report.html.php index 7622eb2e69..92fddce047 100644 --- a/module/story/ui/report.html.php +++ b/module/story/ui/report.html.php @@ -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,