Skip to content
Snippets Groups Projects
Commit 23dc8f07 authored by echicken's avatar echicken
Browse files

Don't derp on an empty high scores array in the DB.

parent 658ed5aa
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ var updateScores = function(data) {
changed = true;
break;
}
if(hs.length < 20 && !changed) {
if((!hs || hs.length < 20) && !changed) {
hs.push(data);
changed = true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment