From b6e9c82092f7aacbc8e2f2f6a062ce35b81c55e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sat, 15 Dec 2001 09:13:13 +0000 Subject: [PATCH] tried to fix bug #493200 - Problems with PHP 4.1.0 --- footer.inc.php3 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/footer.inc.php3 b/footer.inc.php3 index a289a9f43..ef05833b3 100755 --- a/footer.inc.php3 +++ b/footer.inc.php3 @@ -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); } ?>