|
@@ -262,8 +262,7 @@ if (isset($_GET['tag']) || isset($_GET['replace'])) {
|
262
|
262
|
Torrents::update_hash($GroupID);
|
263
|
263
|
}
|
264
|
264
|
}
|
265
|
|
-
|
266
|
|
- } // if ($Mode == MODE_MERGE)
|
|
265
|
+ }
|
267
|
266
|
|
268
|
267
|
echo "\n".'<div class="box pad center"><strong>Success!</strong> Affected entries: '.number_format($TotalAffected).'</div>';
|
269
|
268
|
|
|
@@ -277,7 +276,7 @@ if (isset($_GET['tag']) || isset($_GET['replace'])) {
|
277
|
276
|
</td>
|
278
|
277
|
</tr>
|
279
|
278
|
<?
|
280
|
|
- if (count($AffectedTorrents)) {
|
|
279
|
+ if (count($AffectedTorrents ?? [])) {
|
281
|
280
|
foreach ($AffectedTorrents as $Row) {
|
282
|
281
|
echo "\n\t\t<tr><td>$Row</td></tr>";
|
283
|
282
|
}
|
|
@@ -289,7 +288,7 @@ if (isset($_GET['tag']) || isset($_GET['replace'])) {
|
289
|
288
|
</td>
|
290
|
289
|
</tr>
|
291
|
290
|
<?
|
292
|
|
- if (count($AffectedRequests)) {
|
|
291
|
+ if (count($AffectedRequests ?? [])) {
|
293
|
292
|
foreach ($AffectedRequests as $Row) {
|
294
|
293
|
echo "\n\t\t<tr><td>$Row</td></tr>";
|
295
|
294
|
}
|
|
@@ -298,10 +297,8 @@ if (isset($_GET['tag']) || isset($_GET['replace'])) {
|
298
|
297
|
</table>
|
299
|
298
|
<?
|
300
|
299
|
}
|
301
|
|
-
|
302
|
|
- } // if (!$Err)
|
303
|
|
-
|
304
|
|
-} // if ( isset($_GET['tag']) || isset($_GET['replace']) )
|
|
300
|
+ }
|
|
301
|
+}
|
305
|
302
|
|
306
|
303
|
echo '</div>';
|
307
|
304
|
|