update
This commit is contained in:
parent
736b3b7fa6
commit
bea66d3a88
1 changed files with 30 additions and 26 deletions
|
|
@ -121,6 +121,10 @@ foreach ($chk as $wr_id) {
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
$new_wr_id = sql_insert_id();
|
$new_wr_id = sql_insert_id();
|
||||||
|
|
||||||
|
if (isset($write['wr_is_comment']) && $write['wr_is_comment'] == 0) {
|
||||||
|
sql_query("UPDATE {$target_table} SET wr_parent = '{$new_wr_id}' WHERE wr_id = '{$new_wr_id}'");
|
||||||
|
}
|
||||||
|
|
||||||
if ($write['wr_file']) {
|
if ($write['wr_file']) {
|
||||||
copy_board_files($bo_table, $wr_id, $target_board, $new_wr_id, $write);
|
copy_board_files($bo_table, $wr_id, $target_board, $new_wr_id, $write);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue