Minahito
minah****@users*****
2006年 1月 26日 (木) 20:19:45 JST
Index: xoops2jp/html/class/XCube_ActionForm.class.php diff -u xoops2jp/html/class/XCube_ActionForm.class.php:1.1.2.23 xoops2jp/html/class/XCube_ActionForm.class.php:1.1.2.24 --- xoops2jp/html/class/XCube_ActionForm.class.php:1.1.2.23 Thu Jan 19 21:16:28 2006 +++ xoops2jp/html/class/XCube_ActionForm.class.php Thu Jan 26 20:19:45 2006 @@ -535,7 +535,16 @@ function _check($val,$vars) { - return strlen($val)!=0; + // + // TODO To get null or not null, we have to add a method to form property. + // I will program Validator class and fetch many code from this file. (minahito) + // + if (is_object($val)) { + return true; + } + else { + return strlen($val)!=0; + } } function _checkAsArray($val,$vars)