Index: trunk/admin/import/import_funcs.php =================================================================== diff -u -r420 -r425 --- trunk/admin/import/import_funcs.php (.../import_funcs.php) (revision 420) +++ trunk/admin/import/import_funcs.php (.../import_funcs.php) (revision 425) @@ -102,7 +102,7 @@ */ function StepRedirect($step_info) { - global $rootURL, $admin, $StepIndex, $import_steps, $dst_db, $ImportTable, $objCatList; + global $rootURL, $admin, $StepIndex, $import_steps, $dst_db, $db, $ImportTable, $objCatList; if($step_info['rec_no'] == $step_info['recs_count']) { $import_steps[ $step_info['id'] ]['current'] = 0; @@ -118,6 +118,8 @@ $objSession->SetVariable('ReturnScript', 'browse.php'); // redirect to catalog when finished $NumCats = TableCount($objCatList->SourceTable,'',0); $dst_db->Execute('DROP TABLE IF EXISTS '.$ImportTable); + $db->Close(); + $dst_db->Close(); echo ''; } }