#18366896 : fixed a bug occurred when non-modules are put into modules directory

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6879 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2009-10-20 11:03:43 +00:00
parent 31d00efa0f
commit e97407dc1f
2 changed files with 9 additions and 3 deletions

View file

@ -949,7 +949,13 @@
// 각 모듈의 module.class.php로 upgrade 유무 체크
$oDummy = null;
$oDummy = &getModule($module_name, 'class');
if($oDummy) $info->need_update = $oDummy->checkUpdate();
if($oDummy && method_exists($oDummy, "checkUpdate")) {
$info->need_update = $oDummy->checkUpdate();
}
else
{
continue;
}
$list[] = $info;
}