From 02acde2a5c14f10374da6052b20db101fc64d9d4 Mon Sep 17 00:00:00 2001 From: YCC Date: Fri, 28 Mar 2025 15:16:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=B9=E9=94=99=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/models/infoaccessmanage_model.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/application/models/infoaccessmanage_model.php b/application/models/infoaccessmanage_model.php index d8bc3e93..ec5d94f3 100644 --- a/application/models/infoaccessmanage_model.php +++ b/application/models/infoaccessmanage_model.php @@ -34,8 +34,12 @@ class infoAccessmanage_model extends CI_Model $author[$v->a_id]=$v->a_name; } foreach ($result as $r) { - if(is_numeric($r->iam_author) && $r->iam_author!==1) { - $r->name=$author[$r->iam_author]; + if(is_numeric($r->iam_author)) { + if (isset($author[$r->iam_author])) { + $r->name = $author[$r->iam_author]; + } else { + $r->name = $r->iam_author; + } }elseif (is_null($r->name)) { $r->name=$r->iam_author; }else{