mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[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:
parent
b7778f7fde
commit
c629b2c7b3
1 changed files with 2 additions and 2 deletions
|
@ -568,12 +568,12 @@ class phpbb_db_driver
|
|||
* Run more than one insert statement.
|
||||
*
|
||||
* @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.
|
||||
* @access public
|
||||
*/
|
||||
function sql_multi_insert($table, &$sql_ary)
|
||||
function sql_multi_insert($table, $sql_ary)
|
||||
{
|
||||
if (!sizeof($sql_ary))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue