From 3cd3484c2f5a927c3a70b0b16b2719e25303121f Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 30 Aug 2006 04:48:56 +0000 Subject: [PATCH] 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. --- setup/inc/class.setup_process.inc.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/setup/inc/class.setup_process.inc.php b/setup/inc/class.setup_process.inc.php index 3806ab66c2..0d5aea705e 100755 --- a/setup/inc/class.setup_process.inc.php +++ b/setup/inc/class.setup_process.inc.php @@ -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))) {