diff --git a/admin/move_attachments.php b/admin/move_attachments.php index a678881a26..40b6b3cb78 100644 --- a/admin/move_attachments.php +++ b/admin/move_attachments.php @@ -257,28 +257,6 @@ function move_attachments_to_disk( $p_type, array $p_projects ) { return $t_moved; } -$t_moved = array(); - -if ( null != $f_project_to_move ) { - foreach ( $f_project_to_move as $t_project_to_move) { - - $t_array = explode( ':', $t_project_to_move ); - - if( isset( $t_array[1] ) ) { - $f_project_id = $t_array[1]; - - switch( $t_array[0] ) { - case 'disk': - $t_moved[] = move_attachments_to_disk( $f_file_type, array( $f_project_id ) ); - break; - case 'db': - $t_moved[] = move_attachments_to_db( $f_file_type, array( $f_project_id ) ); - break; - } - } - } -} - form_security_purge( 'move_attachments_project_select' ); # Page header, menu @@ -293,68 +271,95 @@ function move_attachments_to_disk( $p_type, array $p_projects ) { '; - echo '
Opps! Please select the project you want to move the attachment.
'; + echo 'Opps! Please select the project you want to move the attachment.
'; echo ''; } else { - foreach( $t_moved as $t_row ) { - $t_row = $t_row[0]; - - echo ' '; - echo "