1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 02:09:22 +02:00

count lives properly

This commit is contained in:
Daniel 2022-02-28 13:28:07 -03:00
parent 3ceb00679f
commit 77cac1cdfb

View file

@ -6905,9 +6905,7 @@ function getStatsNotifications($force_recreate = false) {
//_error_log('getStatsNotifications: 2 cached result');
$json = object_to_array($json);
}
if (empty($json['countLiveStream']) || $json['countLiveStream'] < $json['total']) {
$json['countLiveStream'] = $json['total'];
}
$json['countLiveStream'] = count($json['applications']);
return $json;
}