From d1c63395e241e618160993ff7d41b503e44a73b0 Mon Sep 17 00:00:00 2001 From: shali <15549351+goodbugood@user.noreply.gitee.com> Date: Wed, 19 Mar 2025 01:07:04 +0000 Subject: [PATCH] =?UTF-8?q?update=20application/common.php.=20refactor:=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=80=BB=E8=BE=91=E7=9F=AD=E8=B7=AF=EF=BC=8C?= =?UTF-8?q?=E4=BE=8B=E5=A6=82=E7=A9=BA=E5=AD=97=E7=AC=A6=E4=B8=B2=EF=BC=8C?= =?UTF-8?q?=E5=81=9A=E4=BA=86=202=20=E6=AC=A1=E9=80=BB=E8=BE=91=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: shali <15549351+goodbugood@user.noreply.gitee.com> --- application/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/common.php b/application/common.php index b8f2c549b..523384a11 100755 --- a/application/common.php +++ b/application/common.php @@ -16,7 +16,7 @@ if (!function_exists('__')) { */ function __($name, $vars = [], $lang = '') { - if (is_numeric($name) || !$name) { + if (!$name || is_numeric($name)) { return $name; } if (!is_array($vars)) { -- Gitee