diff --git a/module/screen/model.php b/module/screen/model.php index e796250999..d5c690c053 100644 --- a/module/screen/model.php +++ b/module/screen/model.php @@ -430,7 +430,8 @@ class screenModel extends model if(!isset($component->option)) $component->option = new stdclass(); if(!isset($component->option->title)) $component->option->title = new stdclass(); - $component->option->title->notFoundText = sprintf($this->lang->screen->$noDataLang, $chart->name); + $name = zget($chart, 'name', ''); + $component->option->title->notFoundText = sprintf($this->lang->screen->$noDataLang, $name); $component->option->isDeleted = true; return $component;