Minahito
minah****@users*****
2006年 1月 12日 (木) 01:45:57 JST
Index: xoops2jp/html/modules/base/kernel/handler.php diff -u xoops2jp/html/modules/base/kernel/handler.php:1.1.2.4 xoops2jp/html/modules/base/kernel/handler.php:1.1.2.5 --- xoops2jp/html/modules/base/kernel/handler.php:1.1.2.4 Wed Jan 11 20:54:59 2006 +++ xoops2jp/html/modules/base/kernel/handler.php Thu Jan 12 01:45:57 2006 @@ -41,7 +41,7 @@ if ($this->db->getRowsNum($result) == 1) { $ret =& new $this->mClass(); - $ret->assignVars($row); + $ret->assignVars($this->db->fetchArray($result)); $ret->unsetNew(); } @@ -194,8 +194,8 @@ $arr = $this->_makeVars4sql($obj); - foreach (array_keys($arr) as $_name => $_value) { - if ($name == $this->mTable) { + foreach ($arr as $_name => $_value) { + if ($_name == $this->mPrimary) { $where = "${_name}=${_value}"; } else {