@@ 261-274 (lines=14) @@ | ||
258 | AND forum_id = ' . $src_forum_id; |
|
259 | $result = $this->db->sql_query($sql); |
|
260 | ||
261 | while ($row = $this->db->sql_fetchrow($result)) |
|
262 | { |
|
263 | $row = array( |
|
264 | 'user_id' => (int) $row['user_id'], |
|
265 | 'auth_option_id' => (int) $row['auth_option_id'], |
|
266 | 'auth_role_id' => (int) $row['auth_role_id'], |
|
267 | 'auth_setting' => (int) $row['auth_setting'], |
|
268 | ); |
|
269 | ||
270 | foreach ($dest_forum_ids as $dest_forum_id) |
|
271 | { |
|
272 | $users_sql_ary[] = $row + array('forum_id' => $dest_forum_id); |
|
273 | } |
|
274 | } |
|
275 | $this->db->sql_freeresult($result); |
|
276 | ||
277 | // Query acl groups table for source forum data |
|
@@ 284-297 (lines=14) @@ | ||
281 | AND forum_id = ' . $src_forum_id; |
|
282 | $result = $this->db->sql_query($sql); |
|
283 | ||
284 | while ($row = $this->db->sql_fetchrow($result)) |
|
285 | { |
|
286 | $row = array( |
|
287 | 'group_id' => (int) $row['group_id'], |
|
288 | 'auth_option_id' => (int) $row['auth_option_id'], |
|
289 | 'auth_role_id' => (int) $row['auth_role_id'], |
|
290 | 'auth_setting' => (int) $row['auth_setting'], |
|
291 | ); |
|
292 | ||
293 | foreach ($dest_forum_ids as $dest_forum_id) |
|
294 | { |
|
295 | $groups_sql_ary[] = $row + array('forum_id' => $dest_forum_id); |
|
296 | } |
|
297 | } |
|
298 | $this->db->sql_freeresult($result); |
|
299 | ||
300 | $this->db->sql_transaction('begin'); |