fix user presence graph

if nobody's using your forum at all, this thing stopped working
altogether
This commit is contained in:
psychobunny
2015-07-08 17:02:33 -04:00
parent c01f06214e
commit b69ea4564a
2 changed files with 13 additions and 1 deletions

View File

@@ -238,6 +238,12 @@ define('admin/general/dashboard', ['semver'], function(semver) {
color: "#949FB1",
highlight: "#A8B3C5",
label: "Recent/Unread"
},
{
value: 1,
color: "#4D5360",
highlight: "#A8B3C5",
label: "Other"
}
], {
responsive: true
@@ -311,6 +317,7 @@ define('admin/general/dashboard', ['semver'], function(semver) {
graphs.presence.segments[1].value = users.topics;
graphs.presence.segments[2].value = users.category;
graphs.presence.segments[3].value = users.recent;
graphs.presence.segments[4].value = users.other;
graphs.presence.update();
}