]> git.mxchange.org Git - ctracker.git/blobdiff - libs/lib_connect.php
unsetCtrackerData() introduced
[ctracker.git] / libs / lib_connect.php
index 3a0b4b31974a00ba5bb79cce75fbc33fd32888b1..b981c03be1c466c1a5c87442b60518c2fe412172 100644 (file)
@@ -77,16 +77,16 @@ function crackerTrackerCloseDatabaseLink () {
        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