From 7e77feb16d9cf17d0ecd32178510c6fc913aee80 Mon Sep 17 00:00:00 2001 From: wlx Date: Thu, 20 Jun 2013 06:52:40 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E7=A9=BA=E7=99=BD?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=9A=84=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controllers/DownController.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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(