[ticket/12038] Use $move_executed in place of $db->sql_affectedrows().

PHPBB3-12038