Index: trunk/core/install/upgrades.php =================================================================== diff -u -N -r8038 -r8039 --- trunk/core/install/upgrades.php (.../upgrades.php) (revision 8038) +++ trunk/core/install/upgrades.php (.../upgrades.php) (revision 8039) @@ -14,11 +14,13 @@ */ function Upgrade_4_0_2($mode) { - $ml_helper =& $this->Application->recallObject('kMultiLanguageHelper'); - /* @var $ml_helper kMultiLanguageHelper */ - - $lang_count = $ml_helper->getLanguageCount(); - $this->Application->UnitConfigReader->iterateConfigs( Array (&$this, 'updateTextFields', $lang_count) ); + if ($mode == 'after') { + $ml_helper =& $this->Application->recallObject('kMultiLanguageHelper'); + /* @var $ml_helper kMultiLanguageHelper */ + + $lang_count = $ml_helper->getLanguageCount(); + $this->Application->UnitConfigReader->iterateConfigs( Array (&$this, 'updateTextFields', $lang_count) ); + } } /**