From 64cf4b11ee50609238704b348912b664e6b55d51 Mon Sep 17 00:00:00 2001 From: Daniel Saunders Date: Mon, 24 Jul 2017 15:01:17 -0400 Subject: [PATCH] Dirty quick fix to allow moderation to move threads with deleted files --- inc/mod/pages.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 9167cfa0..e51bbd7d 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -1314,7 +1314,9 @@ function mod_move($originBoard, $postID) { $post['has_file'] = true; foreach ($post['files'] as $i => &$file) { $file['file_path'] = sprintf($config['board_path'], $board['uri']) . $config['dir']['img'] . $file['file']; - $file['thumb_path'] = sprintf($config['board_path'], $board['uri']) . $config['dir']['thumb'] . $file['thumb']; + + if (isset($file['thumb'])) + $file['thumb_path'] = sprintf($config['board_path'], $board['uri']) . $config['dir']['thumb'] . $file['thumb']; } } else { $post['has_file'] = false;