1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 18:29:39 +02:00
This commit is contained in:
Daniel Neto 2023-03-01 14:52:16 -03:00
parent 0e02a7faf8
commit cc4df9f00a

View file

@ -224,8 +224,8 @@ class API extends PluginAbstract {
$obj = $this->startResponseObject($parameters);
if (!empty($parameters['catName'])) {
$row = Category::getCategoryByName($parameters['catName']);
$fullTotals = self::getTotalFromCategory($row['id'], false, true, true);
$totals = self::getTotalFromCategory($row['id']);
$fullTotals = Category::getTotalFromCategory($row['id'], false, true, true);
$totals = Category::getTotalFromCategory($row['id']);
$row['total'] = $totals['total'];
$row['fullTotal'] = $fullTotals['total'];
$row['fullTotal_videos'] = $fullTotals['videos'];