removed closing of db connection, closing database connection is only required if script runs longer than database connection is needed

This commit is contained in:
Sebastian Mendel
2007-10-16 14:02:16 +00:00
parent 46b110828b
commit d9eebc2ae0
9 changed files with 62 additions and 178 deletions

View File

@@ -284,18 +284,6 @@ function PMA_DBI_getError($link = null)
return $error;
}
function PMA_DBI_close($link = null)
{
if (empty($link)) {
if (isset($GLOBALS['userlink'])) {
$link = $GLOBALS['userlink'];
} else {
return false;
}
}
return @mysql_close($link);
}
function PMA_DBI_num_rows($result)
{
if (!is_bool($result)) {