diff --git a/libraries/dbi/mysql.dbi.lib.php b/libraries/dbi/mysql.dbi.lib.php index a922313ba..41fba4ea7 100644 --- a/libraries/dbi/mysql.dbi.lib.php +++ b/libraries/dbi/mysql.dbi.lib.php @@ -231,7 +231,7 @@ function PMA_DBI_insert_id($link = NULL) { return mysql_insert_id($link); } -function PMA_DBI_affected_rows($link) { +function PMA_DBI_affected_rows($link = NULL) { if (empty($link)) { if (isset($GLOBALS['userlink'])) { $link = $GLOBALS['userlink']; diff --git a/libraries/dbi/mysqli.dbi.lib.php b/libraries/dbi/mysqli.dbi.lib.php index 17e6207cd..81ca4a7d2 100644 --- a/libraries/dbi/mysqli.dbi.lib.php +++ b/libraries/dbi/mysqli.dbi.lib.php @@ -215,7 +215,7 @@ function PMA_DBI_insert_id($link = '') { return mysqli_insert_id($link); } -function PMA_DBI_affected_rows($link) { +function PMA_DBI_affected_rows($link = NULL) { if (empty($link)) { if (isset($GLOBALS['userlink'])) { $link = $GLOBALS['userlink'];