Index: branches/unlabeled/unlabeled-1.1.2/admin/install/upgrades/inportal_upgrade_v4.1.0.php =================================================================== diff -u -r8154 -r8284 --- branches/unlabeled/unlabeled-1.1.2/admin/install/upgrades/inportal_upgrade_v4.1.0.php (.../inportal_upgrade_v4.1.0.php) (revision 8154) +++ branches/unlabeled/unlabeled-1.1.2/admin/install/upgrades/inportal_upgrade_v4.1.0.php (.../inportal_upgrade_v4.1.0.php) (revision 8284) @@ -5,4 +5,27 @@ /* @var $upgrade CoreUpgrades */ $upgrade->Upgrade_4_1_0('after'); + + $db =& inst_GetADODBConnection(true); + + $sql = 'SELECT * + FROM '.TABLE_PREFIX.'Modules + WHERE Name = "Core"'; + $core_found = $db->GetRow($sql); + + if (!$core_found) { + $fields_hash = Array ( + 'Name' => 'Core', + 'Path' => 'core/', + 'Var' => 'adm', + 'Version' => '4.1.1', + 'Loaded' => 1, + 'LoadOrder' => 1, + 'TemplatePath' => '', + 'RootCat' => 0, + 'BuildDate' => 0, + ); + + $db->doInsert($fields_hash, TABLE_PREFIX.'Modules'); + } ?> \ No newline at end of file