diff --git a/application/controllers/information.php b/application/controllers/information.php index d65c987b..eb09082e 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -1047,7 +1047,7 @@ class Information extends CI_Controller $author = $this->Operator_model->get_author_nikename($information->ic_author); if (!empty($author)) { $data_H1['author'] = $author->OPI_FirstName; - $data_H1['OPI_Code'] = $author->OPI_Code; + $data_H1['OPI_Code'] = $author->OPI_Code; } else { $author_web = $this->Infoauthors_model->detail_by_id($information->ic_author); //原始作者,可能是在线作者等 if (!empty($author_web)) { diff --git a/application/views/mobile_first/ah-h1.php b/application/views/mobile_first/ah-h1.php index 403de8f8..da3cea40 100644 --- a/application/views/mobile_first/ah-h1.php +++ b/application/views/mobile_first/ah-h1.php @@ -31,6 +31,7 @@ 'LXW' => 'https://www.globalhighlights.com/aboutus/team/carper-li', 'zzyGH' => 'https://www.globalhighlights.com/aboutus/team/ruru-zhou', ]; + $OPI_Code = empty($OPI_Code) ? '' : $OPI_Code; if (!empty($meta_news_createdate)) {?>
\ No newline at end of file diff --git a/application/views/mobile_first/gh-h1.php b/application/views/mobile_first/gh-h1.php index c594d032..0d503ccc 100644 --- a/application/views/mobile_first/gh-h1.php +++ b/application/views/mobile_first/gh-h1.php @@ -28,6 +28,7 @@ 'LXW' => 'https://www.globalhighlights.com/aboutus/team/carper-li', 'zzyGH' => 'https://www.globalhighlights.com/aboutus/team/ruru-zhou', ]; + $OPI_Code = empty($OPI_Code) ? '' : $OPI_Code; if (!empty($meta_news_createdate)) {?>