Minahito
minah****@users*****
2006年 1月 19日 (木) 21:16:28 JST
Index: xoops2jp/html/class/XCube_ActionForm.class.php diff -u xoops2jp/html/class/XCube_ActionForm.class.php:1.1.2.22 xoops2jp/html/class/XCube_ActionForm.class.php:1.1.2.23 --- xoops2jp/html/class/XCube_ActionForm.class.php:1.1.2.22 Wed Jan 18 22:11:10 2006 +++ xoops2jp/html/class/XCube_ActionForm.class.php Thu Jan 19 21:16:28 2006 @@ -1,4 +1,6 @@ <?php +require_once XOOPS_ROOT_PATH . "/class/XCube_FormFile.class.php"; + // // TODO The difference of array and no-array is too big. // TODO Form object should have getValue(), isNull(), toString(). @@ -382,7 +384,7 @@ function fetch() { $this->mValue->fetch(); - if ($this->mValue->hasUploadFile()) { + if (!$this->mValue->hasUploadFile()) { $this->mValue = null; } } @@ -390,7 +392,7 @@ class XCube_ImageFileProperty extends XCube_FileProperty { - function XCube_FileProperty($name) + function XCube_ImageFileProperty($name) { parent::XCube_AbstractProperty($name); $this->mValue =& new XCube_FormImageFile($name);