@@ -75,7 +75,7 @@ public function track_avatars()
7575 /** @var file_tracker $file_tracker */
7676 $ file_tracker = $ this ->container ->get ('storage.file_tracker ' );
7777
78- $ sql = 'SELECT user_avatar
78+ $ sql = 'SELECT DISTINCT user_avatar
7979 FROM ' . USERS_TABLE . "
8080 WHERE user_avatar_type = 'avatar.driver.upload' " ;
8181 $ result = $ this ->db ->sql_query ($ sql );
@@ -121,7 +121,7 @@ public function track_attachments()
121121 /** @var file_tracker $file_tracker */
122122 $ file_tracker = $ this ->container ->get ('storage.file_tracker ' );
123123
124- $ sql = 'SELECT physical_filename, thumbnail
124+ $ sql = 'SELECT DISTINCT physical_filename, thumbnail
125125 FROM ' . ATTACHMENTS_TABLE ;
126126 $ result = $ this ->db ->sql_query ($ sql );
127127
@@ -130,14 +130,14 @@ public function track_attachments()
130130 {
131131 $ files [] = [
132132 'file_path ' => $ row ['physical_filename ' ],
133- 'filesize ' => filesize ($ this ->phpbb_root_path . $ this ->config ['storage \\attachment \\config \\path ' ] . '/ ' . $ row ['physical_filename ' ]),
133+ 'filesize ' => @ filesize ($ this ->phpbb_root_path . $ this ->config ['storage \\attachment \\config \\path ' ] . '/ ' . $ row ['physical_filename ' ]),
134134 ];
135135
136136 if ($ row ['thumbnail ' ] == 1 )
137137 {
138138 $ files [] = [
139139 'file_path ' => 'thumb_ ' . $ row ['physical_filename ' ],
140- 'filesize ' => filesize ($ this ->phpbb_root_path . $ this ->config ['storage \\attachment \\config \\path ' ] . '/thumb_ ' . $ row ['physical_filename ' ]),
140+ 'filesize ' => @ filesize ($ this ->phpbb_root_path . $ this ->config ['storage \\attachment \\config \\path ' ] . '/thumb_ ' . $ row ['physical_filename ' ]),
141141 ];
142142 }
143143
@@ -161,7 +161,7 @@ public function track_backups()
161161 /** @var file_tracker $file_tracker */
162162 $ file_tracker = $ this ->container ->get ('storage.file_tracker ' );
163163
164- $ sql = 'SELECT filename
164+ $ sql = 'SELECT DISTINCT filename
165165 FROM ' . BACKUPS_TABLE ;
166166 $ result = $ this ->db ->sql_query ($ sql );
167167
@@ -170,7 +170,7 @@ public function track_backups()
170170 {
171171 $ files [] = [
172172 'file_path ' => $ row ['filename ' ],
173- 'filesize ' => filesize ($ this ->phpbb_root_path . $ this ->config ['storage \\backup \\config \\path ' ] . '/ ' . $ row ['filename ' ]),
173+ 'filesize ' => @ filesize ($ this ->phpbb_root_path . $ this ->config ['storage \\backup \\config \\path ' ] . '/ ' . $ row ['filename ' ]),
174174 ];
175175
176176 if (count ($ files ) >= self ::BATCH_SIZE )
0 commit comments