diff --git a/application/admin/controllers/DownController.php b/application/admin/controllers/DownController.php index 393b8421..b603c68d 100644 --- a/application/admin/controllers/DownController.php +++ b/application/admin/controllers/DownController.php @@ -229,12 +229,14 @@ class Admin_DownController extends Zend_Controller_Action $role['distributor']=array(); $role['publisher']=array(); $role['author']=array(); - $single=array(); + $single=array(); + if ($rows) + { foreach($rows as $row) { if ($tmp_title!=$row['title']) { - if (count($role)) + if (count($role) && !empty($tmp_title)) { $single['role']=$role; $md[]=$single; @@ -353,7 +355,7 @@ class Admin_DownController extends Zend_Controller_Action $mail->createAttachment($filecontent,'application/octet-stream',Zend_Mime::DISPOSITION_ATTACHMENT, Zend_Mime::ENCODING_BASE64, 'offlineapp.pdf'); $mail->send(); } - + } //提示信息 $data = array(