From 772a7ed04d2c44d71a0f279c640bede9c6154a6b Mon Sep 17 00:00:00 2001 From: qixinzhi Date: Wed, 18 Dec 2024 09:18:36 +0000 Subject: [PATCH] * [bug] fix error. --- module/screen/model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;