tried to fix bug #493200 - Problems with PHP 4.1.0

This commit is contained in:
Loïc Chapeaux
2001-12-15 09:13:13 +00:00
parent 41d3dedd5d
commit b6e9c82092

View File

@@ -6,12 +6,14 @@
// the footer for phpMyAdmin pages.
/**
* Close MySql connections
* Close MySql non-persistent connections
*/
if (isset($dbh) && $dbh) {
if (!$cfgPersistentConnections
&& (isset($dbh) && $dbh)) {
@mysql_close($dbh);
}
if (isset($userlink) && $userlink) {
if (!$cfgPersistentConnections
&& (isset($userlink) && $userlink)) {
@mysql_close($userlink);
}
?>