mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
Merge branch 'master' of https://github.com/torrentpier/torrentpier
This commit is contained in:
commit
20957a3d1b
1 changed files with 5 additions and 1 deletions
|
@ -597,9 +597,13 @@ class Torrent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove announce-list if empty
|
// Preparing announce-list
|
||||||
if (empty($tor['announce-list'])) {
|
if (empty($tor['announce-list'])) {
|
||||||
|
// Remove announce-list if empty
|
||||||
unset($tor['announce-list']);
|
unset($tor['announce-list']);
|
||||||
|
} else {
|
||||||
|
// Normalizing announce-list
|
||||||
|
$tor['announce-list'] = array_unique($tor['announce-list'], SORT_REGULAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add publisher & topic url
|
// Add publisher & topic url
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue