From 562c4569cb0ac6527210495021dbf79bda440b5d Mon Sep 17 00:00:00 2001 From: tianshujie Date: Tue, 6 Sep 2022 13:11:29 +0800 Subject: [PATCH] * Fix bug #27007. --- module/report/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/report/control.php b/module/report/control.php index aadaaf9f13..bb22198742 100644 --- a/module/report/control.php +++ b/module/report/control.php @@ -331,7 +331,7 @@ class report extends control $depts = $this->dept->getOptionMenu(); if(!$this->app->user->admin) { - $depts = ($dept and isset($depts[$dept])) ? array($dept => $depts[$dept]) : $this->lang->dept->noDepartment; + $depts = ($dept and isset($depts[$dept])) ? array($dept => $depts[$dept]) : $noDepartment; } else {