mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
[ticket/11469] Add comment about using bitwise operator.
PHPBB3-11469
This commit is contained in:
@@ -118,11 +118,12 @@ class phpbb_db_sql_insert_buffer
|
||||
*/
|
||||
public function insert_all(array $rows)
|
||||
{
|
||||
$result = false;
|
||||
// Using bitwise |= because PHP does not have logical ||=
|
||||
$result = 0;
|
||||
|
||||
foreach ($rows as $row)
|
||||
{
|
||||
$result |= $this->insert($row);
|
||||
$result |= (int) $this->insert($row);
|
||||
}
|
||||
|
||||
return (bool) $result;
|
||||
|
Reference in New Issue
Block a user