* Initialize the variable.
This commit is contained in:
@@ -1947,6 +1947,7 @@ class story extends control
|
||||
{
|
||||
$this->loadModel('report');
|
||||
$this->view->charts = array();
|
||||
$this->view->datas = array();
|
||||
|
||||
if(!empty($_POST))
|
||||
{
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user