Browse Source

Fix trump freeleeching

spaghetti 9 years ago
parent
commit
0985125d37
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      sections/reportsv2/takeresolve.php

+ 2
- 2
sections/reportsv2/takeresolve.php View File

229
           $AffectedUsers[] = $UserID;
229
           $AffectedUsers[] = $UserID;
230
         }
230
         }
231
       }
231
       }
232
-      foreach ($AffectedUser as $UserID) {
232
+      foreach ($AffectedUsers as $UserID) {
233
         Tracker::update_tracker('add_token', array('info_hash' => rawurlencode($InfoHash), 'userid' => $UserID));
233
         Tracker::update_tracker('add_token', array('info_hash' => rawurlencode($InfoHash), 'userid' => $UserID));
234
         $DB->query("
234
         $DB->query("
235
           INSERT INTO users_freeleeches (UserID, TorrentID, Time)
235
           INSERT INTO users_freeleeches (UserID, TorrentID, Time)
238
             Time = VALUES(Time),
238
             Time = VALUES(Time),
239
             Expired = FALSE,
239
             Expired = FALSE,
240
             Uses = 0");
240
             Uses = 0");
241
-        Misc::send_pm($UserID, 0, "Torrent Deleted: ".$RawName, "A torrent you have snatched (or uploaded) has been trumped by a more recent torrent. This new torrent will be freeleech for you for the next 4 days.\r\n\r\nYou can find the new torrent [url=".site_url()."torrents.php?torrentid=$TorrentID]here[/url]");
241
+        Misc::send_pm($UserID, 0, "Torrent Deleted: ".$RawName, "A torrent you have snatched (or uploaded) has been trumped by a more recent torrent. This new torrent will be freeleech for you for the next 4 days.\r\n\r\nYou can find the new torrent [url=".site_url()."torrents.php?torrentid=$ExtraID]here[/url]");
242
       }
242
       }
243
     }
243
     }
244
   }
244
   }

Loading…
Cancel
Save