From cc6d2f22ae5037d257e58f6dd345dc2f638c76d0 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Sun, 18 Apr 2004 14:03:02 +0000 Subject: [PATCH] Allow the $link argument of PMA_DBI_affected_rows() to be left out. --- libraries/dbi/mysql.dbi.lib.php | 2 +- libraries/dbi/mysqli.dbi.lib.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'];