[ticket/11476] Remove pass-by-reference from sql_mutli_insert

The method never writes to the array passed by reference. So it can be
passed by value instead to avoid certain problems.

PHPBB3-11476
This commit is contained in:
Joas Schilling 2013-03-27 15:01:36 +01:00
parent b7778f7fde
commit c629b2c7b3

View file

@ -568,12 +568,12 @@ class phpbb_db_driver
* Run more than one insert statement. * Run more than one insert statement.
* *
* @param string $table table name to run the statements on * @param string $table table name to run the statements on
* @param array &$sql_ary multi-dimensional array holding the statement data. * @param array $sql_ary multi-dimensional array holding the statement data.
* *
* @return bool false if no statements were executed. * @return bool false if no statements were executed.
* @access public * @access public
*/ */
function sql_multi_insert($table, &$sql_ary) function sql_multi_insert($table, $sql_ary)
{ {
if (!sizeof($sql_ary)) if (!sizeof($sql_ary))
{ {