Minahito
minah****@users*****
2007年 4月 26日 (木) 12:13:43 JST
Index: xoops2jp/html/kernel/module.php diff -u xoops2jp/html/kernel/module.php:1.2.8.14.2.4.2.2 xoops2jp/html/kernel/module.php:1.2.8.14.2.4.2.3 --- xoops2jp/html/kernel/module.php:1.2.8.14.2.4.2.2 Wed Apr 11 12:41:34 2007 +++ xoops2jp/html/kernel/module.php Thu Apr 26 12:13:43 2007 @@ -1,5 +1,5 @@ <?php -// $Id: module.php,v 1.2.8.14.2.4.2.2 2007/04/11 03:41:34 minahito Exp $ +// $Id: module.php,v 1.2.8.14.2.4.2.3 2007/04/26 03:13:43 minahito Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -441,6 +441,7 @@ if (strtolower(get_class($module)) != 'xoopsmodule') { return false; } + if (!$module->isDirty()) { return true; } @@ -461,6 +462,7 @@ if (!$result = $this->db->query($sql)) { return false; } + $module->unsetNew(); if (empty($mid)) { $mid = $this->db->getInsertId(); }