Browse Source

Use correct type for FreeTorrent column

spaghetti 3 years ago
parent
commit
6faa1294d3
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      sections/upload/upload_handle.php

+ 6
- 6
sections/upload/upload_handle.php View File

@@ -476,20 +476,20 @@ if ($DB->has_results()) {
476 476
   $FreeLeechTags = $DB->to_array('Name');
477 477
   foreach ($FreeLeechTags as $Tag => $Exp) {
478 478
     if ($Tag == 'global' || in_array($Tag, $Tags)) {
479
-      $T['FreeTorrent'] = 1;
480
-      $T['FreeLeechType'] = 3;
479
+      $T['FreeTorrent'] = '1';
480
+      $T['FreeLeechType'] = '3';
481 481
       break;
482 482
     }
483 483
   }
484 484
 } else {
485
-  $T['FreeTorrent'] = 0;
486
-  $T['FreeLeechType'] = 0;
485
+  $T['FreeTorrent'] = '0';
486
+  $T['FreeLeechType'] = '0';
487 487
 }
488 488
 
489 489
 // movie and anime ISOs are neutral leech, and receive a BP bounty
490 490
 if (($Type == 'Movies' || $Type == 'Anime') && ($T['Container'] == 'ISO' || $T['Container'] == 'M2TS' || $T['Container'] == 'VOB IFO')) {
491
-  $T['FreeTorrent'] = 2;
492
-  $T['FreeLeechType'] = 2;
491
+  $T['FreeTorrent'] = '2';
492
+  $T['FreeLeechType'] = '2';
493 493
 }
494 494
 
495 495
 // Torrent

Loading…
Cancel
Save