diff --git a/phpBB/phpbb/db/driver/driver.php b/phpBB/phpbb/db/driver/driver.php index 52e8545f36..8509c07d68 100644 --- a/phpBB/phpbb/db/driver/driver.php +++ b/phpBB/phpbb/db/driver/driver.php @@ -387,7 +387,7 @@ abstract class driver implements driver_interface /** * {@inheritDoc} */ - function sql_fetchfield($field, $rownum = false, $query_id = false) + function sql_fetchfield($field, $rownum = false, &$query_id = false) { global $cache; diff --git a/phpBB/phpbb/db/driver/driver_interface.php b/phpBB/phpbb/db/driver/driver_interface.php index 918add2e62..ead8aa6d07 100644 --- a/phpBB/phpbb/db/driver/driver_interface.php +++ b/phpBB/phpbb/db/driver/driver_interface.php @@ -268,7 +268,7 @@ interface driver_interface * @return mixed String value of the field in the selected row, * false, if the row does not exist */ - public function sql_fetchfield($field, $rownum = false, $query_id = false); + public function sql_fetchfield($field, $rownum = false, &$query_id = false); /** * Fetch current row diff --git a/phpBB/phpbb/db/driver/factory.php b/phpBB/phpbb/db/driver/factory.php index 4d28ab1032..558f4ec60d 100644 --- a/phpBB/phpbb/db/driver/factory.php +++ b/phpBB/phpbb/db/driver/factory.php @@ -294,7 +294,7 @@ class factory implements driver_interface /** * {@inheritdoc} */ - public function sql_fetchfield($field, $rownum = false, $query_id = false) + public function sql_fetchfield($field, $rownum = false, &$query_id = false) { return $this->get_driver()->sql_fetchfield($field, $rownum, $query_id); } diff --git a/phpBB/phpbb/db/driver/postgres.php b/phpBB/phpbb/db/driver/postgres.php index 0289901ea9..17e3681f3a 100644 --- a/phpBB/phpbb/db/driver/postgres.php +++ b/phpBB/phpbb/db/driver/postgres.php @@ -298,7 +298,7 @@ class postgres extends \phpbb\db\driver\driver /** * {@inheritDoc} */ - function sql_fetchfield($field, $rownum = false, $query_id = false) + function sql_fetchfield($field, $rownum = false, &$query_id = false) { global $cache;