bug 1108521, mysqli_free_result() expects parameter 1 to be a result

This commit is contained in:
Marc Delisle
2005-01-28 20:44:02 +00:00
parent b0e1de3732
commit cefbde0902
2 changed files with 3 additions and 2 deletions

View File

@@ -9,6 +9,8 @@ $Source$
* libraries/dbi/mysqli.dbi.lib.php: bug #1111706, call to undefined
function PMA_reloadNavigation(). A failed connection was not properly
detected
* libraries/export/sql.php: bug #1108521, mysqli_free_result() expects
parameter 1 to be a result
2005-01-27 Marc Delisle <lem9@users.sourceforge.net>
* libraries/fpdf/fpdf.php: bug #1106146, missing header for PDF,

View File

@@ -57,8 +57,7 @@ function PMA_exportHeader() {
global $cfg;
if (PMA_MYSQL_INT_VERSION >= 40100 && isset($GLOBALS['sql_compat']) && $GLOBALS['sql_compat'] != 'NONE') {
$result = PMA_DBI_query('SET @@SQL_MODE="' . $GLOBALS['sql_compat'] . '"');
PMA_DBI_free_result($result);
PMA_DBI_query('SET SQL_MODE="' . $GLOBALS['sql_compat'] . '"');
}
$head = $GLOBALS['comment_marker'] . 'phpMyAdmin SQL Dump' . $crlf