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'); } ?>