mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 18:29:39 +02:00
count lives properly
This commit is contained in:
parent
3ceb00679f
commit
77cac1cdfb
1 changed files with 1 additions and 3 deletions
|
@ -6905,9 +6905,7 @@ function getStatsNotifications($force_recreate = false) {
|
||||||
//_error_log('getStatsNotifications: 2 cached result');
|
//_error_log('getStatsNotifications: 2 cached result');
|
||||||
$json = object_to_array($json);
|
$json = object_to_array($json);
|
||||||
}
|
}
|
||||||
if (empty($json['countLiveStream']) || $json['countLiveStream'] < $json['total']) {
|
$json['countLiveStream'] = count($json['applications']);
|
||||||
$json['countLiveStream'] = $json['total'];
|
|
||||||
}
|
|
||||||
return $json;
|
return $json;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue