bug #1116933 parameter to mysqli_free_resul

This commit is contained in:
Marc Delisle
2005-02-07 18:02:36 +00:00
parent 71c0225996
commit c3a0783613
2 changed files with 10 additions and 2 deletions

View File

@@ -160,7 +160,11 @@ function PMA_DBI_fetch_row($result) {
}
function PMA_DBI_free_result($result) {
return @mysql_free_result($result);
if (!is_bool($result)) {
return mysql_free_result($result);
} else {
return 0;
}
}
function PMA_DBI_getError($link = NULL) {

View File

@@ -176,7 +176,11 @@ function PMA_DBI_fetch_row($result) {
}
function PMA_DBI_free_result($result) {
return @mysqli_free_result($result);
if (!is_bool($result)) {
return mysqli_free_result($result);
} else {
return 0;
}
}
function PMA_DBI_getError($link = NULL) {