diff --git a/modules/poll/poll.admin.view.php b/modules/poll/poll.admin.view.php index 27f0756f6..b2217aa3a 100644 --- a/modules/poll/poll.admin.view.php +++ b/modules/poll/poll.admin.view.php @@ -57,10 +57,12 @@ $oDocumentModel = &getModel('document'); $targetDocumentOutput = $oDocumentModel->getDocuments($uploadTargetSrlList); + if(!is_array($targetDocumentOutput)) $targetDocumentOutput = array(); $oCommentModel = &getModel('comment'); $columnList = array('comment_srl', 'document_srl'); $targetCommentOutput = $oCommentModel->getComments($uploadTargetSrlList, $columnList); + if(!is_array($targetCommentOutput)) $targetCommentOutput = array(); foreach($output->data AS $key=>$value) {