[ticket/11469] Add comment about using bitwise operator.

PHPBB3-11469
This commit is contained in:
Andreas Fischer 2013-03-28 00:27:02 +01:00
parent e3a6935de6
commit 4bd5f279dc

View file

@ -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;