if (isCrackerTrackerDatabaseLinkUp()) {
// Did it work?
if (!mysql_close($GLOBALS['ctracker_link'])) {
- // Remove the link from global array
- unset($GLOBALS['ctracker_link']);
+ // Remove all data from global space
+ unsetCtrackerData();
// Attempt has failed
crackerTrackerDatabaseError(__FUNCTION__, __LINE__);
} // END - if
} // END - if
- // Remove the link from global array
- unset($GLOBALS['ctracker_link']);
+ // Remove all data from global space
+ unsetCtrackerData();
}
// Inserts given array, if IP/check_worm combination was not found