author | Jordan Doyle <jordan@doyle.wf> | 2016-06-22 19:08:02.0 +01:00:00 |
---|---|---|
committer | Jordan Doyle <jordan@doyle.wf> | 2016-06-22 19:08:02.0 +01:00:00 |
commit | 9c6fdd1a3c44dafb77c33af4f9132c710b312a1c [patch] |
|
tree | cbe93a6503b5de0e0a21755183bfab47cf904cf8 |
|
parent | 5c7e793ef50c248c017590fcde4228247f50819f |
|
download | 9c6fdd1a3c44dafb77c33af4f9132c710b312a1c.tar.gz |
Fix grabbing old stats
Diff
app/Http/Controllers/StatsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/StatsController.php b/app/Http/Controllers/StatsController.php index 7fd9639..938501f 100644 --- a/app/Http/Controllers/StatsController.php +++ a/app/Http/Controllers/StatsController.php @@ -38,7 +38,7 @@ json_decode(file_get_contents(storage_path('stats.json'))) : false; $ret['dj'] = empty($stats->dj) ? ($old ? $old->dj : false) : $stats->dj; $ret['raw_dj'] = empty($stats->dj) ? ($old ? $old->dj : false) : $stats->dj; $ret['raw_dj'] = empty($stats->dj) ? ($old ? $old->raw_dj : false) : $stats->dj; $ret['listeners'] = $stats->currentlisteners; if (!$ret['dj']) {