🏡 index : ~doyle/zpan.git

author Jordan Doyle <jordan@doyle.wf> 2016-06-22 18:52:20.0 +01:00:00
committer Jordan Doyle <jordan@doyle.wf> 2016-06-22 18:52:20.0 +01:00:00
commit
8831849fc0f93c991ff3da788a4d7f055b73a699 [patch]
tree
2eb6d480c782267dad47b42e42e4474fefb8d53a
parent
022e5719555fbaeeba5c2a3620f145099bde1b12
download
8831849fc0f93c991ff3da788a4d7f055b73a699.tar.gz

Fix error when the dj has their name in their password



Diff

 app/Http/Controllers/StatsController.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app/Http/Controllers/StatsController.php b/app/Http/Controllers/StatsController.php
index e794df3..7fd9639 100644
--- a/app/Http/Controllers/StatsController.php
+++ a/app/Http/Controllers/StatsController.php
@@ -38,6 +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['listeners'] = $stats->currentlisteners;

                if (!$ret['dj']) {