pjc 5 years ago
parent
commit
af7102aba4
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      classes/torrentsdl.class.php
  2. 1
    1
      sections/torrents/download.php

+ 1
- 1
classes/torrentsdl.class.php View File

35
     function add_passkey($Ann) {
35
     function add_passkey($Ann) {
36
       return (is_array($Ann)) ? array_map('add_passkey', $Ann) : $Ann."/".G::$LoggedUser['torrent_pass']."/announce";
36
       return (is_array($Ann)) ? array_map('add_passkey', $Ann) : $Ann."/".G::$LoggedUser['torrent_pass']."/announce";
37
     }
37
     }
38
-    $this->AnnounceList = (sizeof(ANNOUNCE_URLS) == 1 && sizeof(ANNOUNCE_URLS[0]) == 1) ? [] : array_map('add_passkey', ANNOUNCE_URLS);
38
+    $this->AnnounceList = (sizeof(ANNOUNCE_URLS) === 1 && sizeof(ANNOUNCE_URLS[0]) === 1) ? [] : array_map('add_passkey', ANNOUNCE_URLS);
39
     $this->Zip = new Zip(Misc::file_string($Title));
39
     $this->Zip = new Zip(Misc::file_string($Title));
40
   }
40
   }
41
 
41
 

+ 1
- 1
sections/torrents/download.php View File

188
   return (is_array($ann)) ? array_map("add_passkey", $ann) : $ann."/".$TorrentPass."/announce";
188
   return (is_array($ann)) ? array_map("add_passkey", $ann) : $ann."/".$TorrentPass."/announce";
189
 }
189
 }
190
 $UserAnnounceURL = ANNOUNCE_URLS[0][0]."/".$TorrentPass."/announce";
190
 $UserAnnounceURL = ANNOUNCE_URLS[0][0]."/".$TorrentPass."/announce";
191
-$UserAnnounceList = (sizeof(ANNOUNCE_URLS) == 1 && sizeof(ANNOUNCE_URLS[0]) == 1) ? [] : array_map("add_passkey", ANNOUNCE_URLS);
191
+$UserAnnounceList = (sizeof(ANNOUNCE_URLS) === 1 && sizeof(ANNOUNCE_URLS[0]) === 1) ? [] : array_map("add_passkey", ANNOUNCE_URLS);
192
 
192
 
193
 echo TorrentsDL::get_file($Contents, $UserAnnounceURL, $UserAnnounceList);
193
 echo TorrentsDL::get_file($Contents, $UserAnnounceURL, $UserAnnounceList);
194
 
194
 

Loading…
Cancel
Save