Minahito
minah****@users*****
2006年 1月 26日 (木) 20:11:18 JST
Index: xoops2jp/html/modules/user/admin/actions/AvatarEditAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/AvatarEditAction.class.php:1.1.2.1 xoops2jp/html/modules/user/admin/actions/AvatarEditAction.class.php:1.1.2.2 --- xoops2jp/html/modules/user/admin/actions/AvatarEditAction.class.php:1.1.2.1 Thu Jan 19 21:05:35 2006 +++ xoops2jp/html/modules/user/admin/actions/AvatarEditAction.class.php Thu Jan 26 20:11:18 2006 @@ -25,8 +25,10 @@ function _doExecute() { - if (!$this->mActionForm->mFormFile->saveAs(XOOPS_UPLOAD_PATH)) { - return false; + if ($this->mActionForm->mFormFile != null) { + if (!$this->mActionForm->mFormFile->saveAs(XOOPS_UPLOAD_PATH)) { + return false; + } } if ($this->mActionForm->mOldFileName != null && $this->mActionForm->mOldFileName != "blank.gif") {