|
|
@ -184,7 +184,7 @@ window.addEvent('load', function () { |
|
|
|
|
|
|
|
|
|
|
|
var addTorrentToCategoryList = function(torrent) { |
|
|
|
var addTorrentToCategoryList = function(torrent) { |
|
|
|
var category = torrent['category']; |
|
|
|
var category = torrent['category']; |
|
|
|
if (category === null) |
|
|
|
if (typeof category === 'undefined') |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
if (category.length === 0) { // Empty category
|
|
|
|
if (category.length === 0) { // Empty category
|
|
|
|
removeTorrentFromCategoryList(torrent['hash']); |
|
|
|
removeTorrentFromCategoryList(torrent['hash']); |
|
|
|