Minahito
minah****@users*****
2006年 10月 15日 (日) 17:18:09 JST
Index: xoops2jp/html/modules/legacyRender/admin/actions/TplsetUploadAction.class.php diff -u xoops2jp/html/modules/legacyRender/admin/actions/TplsetUploadAction.class.php:1.1.2.3 xoops2jp/html/modules/legacyRender/admin/actions/TplsetUploadAction.class.php:1.1.2.3.2.1 --- xoops2jp/html/modules/legacyRender/admin/actions/TplsetUploadAction.class.php:1.1.2.3 Tue Jul 11 12:06:23 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/TplsetUploadAction.class.php Sun Oct 15 17:18:09 2006 @@ -1,7 +1,7 @@ <?php /** * @package legacyRender - * @version $Id: TplsetUploadAction.class.php,v 1.1.2.3 2006/07/11 03:06:23 minahito Exp $ + * @version $Id: TplsetUploadAction.class.php,v 1.1.2.3.2.1 2006/10/15 08:18:09 minahito Exp $ */ if (!defined('XOOPS_ROOT_PATH')) exit(); @@ -55,6 +55,10 @@ // $tar->openTar($formFile->_mTmpFileName); + if (!is_array($tar->files)) { + return LEGACYRENDER_FRAME_VIEW_ERROR; + } + $tplsetName = null; foreach ($tar->files as $id => $info) { $infoArr = explode('/', str_replace("\\", '/', $info['name']));