Minahito
minah****@users*****
2007年 3月 20日 (火) 17:07:52 JST
Index: xoops2jp/html/modules/legacy/admin/class/ModuleInstallUtils.class.php diff -u xoops2jp/html/modules/legacy/admin/class/ModuleInstallUtils.class.php:1.1.2.21.2.3 xoops2jp/html/modules/legacy/admin/class/ModuleInstallUtils.class.php:1.1.2.21.2.4 --- xoops2jp/html/modules/legacy/admin/class/ModuleInstallUtils.class.php:1.1.2.21.2.3 Fri Mar 16 20:14:50 2007 +++ xoops2jp/html/modules/legacy/admin/class/ModuleInstallUtils.class.php Tue Mar 20 17:07:52 2007 @@ -999,8 +999,9 @@ $configArr =& $handler->getConfigs($criteria); - if (count($configArr) == 0) { + if (!(count($configArr) > 0 && is_object($configArr[0]))) { $log->addError('Execption Error: Could not find config.'); + return; } $config =& $configArr[0]; @@ -1062,6 +1063,7 @@ if (!(count($configArr) > 0 && is_object($configArr[0]))) { $log->addError('Execption Error: Could not find config.'); + return; } $config =& $configArr[0];