fixed big bug in setup-cli on updating multiple domains: only the update on the first domain run correct, the further domains only get the version-number upgraded, but not the schema. This is fixed now.

This commit is contained in:
Ralf Becker 2006-08-30 04:48:56 +00:00
parent 90b8c3e5fd
commit 3cd3484c2f

View File

@ -527,11 +527,13 @@
$targetver = $appdata['version']; // The version we need to match when done
$appdir = EGW_SERVER_ROOT . SEP . $appname . SEP . 'setup' . SEP;
if(file_exists($appdir . 'tables_update.inc.php') && !@$this->updateincluded[$appname])
if(file_exists($appdir . 'tables_update.inc.php'))
{
include ($appdir . 'tables_update.inc.php');
$this->updateincluded[$appname] = True;
if (!@$this->updateincluded[$appname])
{
include ($appdir . 'tables_update.inc.php');
$this->updateincluded[$appname] = True;
}
while ($currentver && $currentver != $targetver &&
function_exists($function = $appname . '_upgrade' . str_replace('.','_',$currentver)))
{