issue 87 check checkUpdate method in module class

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8628 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-07-25 05:39:27 +00:00
parent a7b5747b59
commit ce9d4f1af2

View file

@ -376,7 +376,10 @@
$this->installModule($module, sprintf('./modules/%s', $module));
$oModule = &getClass($module);
if($oModule->checkUpdate()) $oModule->moduleUpdate();
if(is_object($oModule) && method_exists($oModule, 'checkUpdate'))
{
if($oModule->checkUpdate()) $oModule->moduleUpdate();
}
}
unset($modules[$category]);
}