Allow the $link argument of PMA_DBI_affected_rows() to be left out.

This commit is contained in:
Alexander M. Turek
2004-04-18 14:03:02 +00:00
parent a4cc456c99
commit cc6d2f22ae
2 changed files with 2 additions and 2 deletions

View File

@@ -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'];

View File

@@ -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'];