mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02: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:
@@ -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))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user