order tags by file size

This commit is contained in:
ghost 2023-10-15 07:03:23 +03:00
parent 6ab4dc87c2
commit 8cf9905846

View File

@ -271,12 +271,12 @@ class TorrentController extends AbstractController
if (isset($keywords[$keyword]))
{
$keywords[$keyword]++;
$keywords[$keyword] = $keywords[$keyword] + (int) $item['size'];
}
else
{
$keywords[$keyword] = 1;
$keywords[$keyword] = 0;
}
}
}
@ -420,12 +420,12 @@ class TorrentController extends AbstractController
if (isset($keywords[$keyword]))
{
$keywords[$keyword]++;
$keywords[$keyword] = $keywords[$keyword] + (int) $item['size'];
}
else
{
$keywords[$keyword] = 1;
$keywords[$keyword] = 0;
}
}
}