phpBB

Code Changes

File: phpbb/tree/nestedset.php

  Unmodified   Added   Modified   Removed
Line 391Line 391
			throw new \OutOfBoundsException($this->message_prefix . 'INVALID_PARENT');
}


			throw new \OutOfBoundsException($this->message_prefix . 'INVALID_PARENT');
}


		$diff = sizeof($move_items) * 2;

 
		$sql_exclude_moved_items = $this->db->sql_in_set($this->column_item_id, $move_items, true);

$this->db->sql_transaction('begin');

		$sql_exclude_moved_items = $this->db->sql_in_set($this->column_item_id, $move_items, true);

$this->db->sql_transaction('begin');

Line 490Line 489
			throw new \OutOfBoundsException($this->message_prefix . 'INVALID_PARENT');
}


			throw new \OutOfBoundsException($this->message_prefix . 'INVALID_PARENT');
}


		$diff = sizeof($move_items) * 2;

 
		$sql_exclude_moved_items = $this->db->sql_in_set($this->column_item_id, $move_items, true);

$this->db->sql_transaction('begin');

		$sql_exclude_moved_items = $this->db->sql_in_set($this->column_item_id, $move_items, true);

$this->db->sql_transaction('begin');

Line 837Line 835
				' . $this->get_sql_where('AND') . '
ORDER BY ' . $this->column_left_id . ', ' . $this->column_item_id . ' ASC';
$result = $this->db->sql_query($sql);

				' . $this->get_sql_where('AND') . '
ORDER BY ' . $this->column_left_id . ', ' . $this->column_item_id . ' ASC';
$result = $this->db->sql_query($sql);

		while ($row = $this->db->sql_fetchrow($result))




		$rows = $this->db->sql_fetchrowset($result);
$this->db->sql_freeresult($result);

foreach ($rows as $row)

		{
// First we update the left_id for this module
if ($row[$this->column_left_id] != $new_id)

		{
// First we update the left_id for this module
if ($row[$this->column_left_id] != $new_id)

Line 862Line 863
			}
$new_id++;
}

			}
$new_id++;
}

		$this->db->sql_freeresult($result);

 

if ($acquired_new_lock)
{


if ($acquired_new_lock)
{