diff --git a/app/keti/controller/Jieti.php b/app/keti/controller/Jieti.php index d6572ef2..b43e401b 100644 --- a/app/keti/controller/Jieti.php +++ b/app/keti/controller/Jieti.php @@ -398,11 +398,13 @@ class Jieti extends AdminBase if($value->ktCy){ $str = ''; foreach ($value->ktCy as $k => $val) { - if($k==0) - { - $str = $val->teacher->xingming; - }else{ - $str = $str . '、' . $val->teacher->xingming; + if(isset($val->teacher->xingming)) { + if($k==0) + { + $str = $val->teacher->xingming; + }else{ + $str = $str . '、' . $val->teacher->xingming; + } } } $worksheet->getCell('F' . $myrowid)->setValue($str);