Commit 40605607 authored by JC Brand's avatar JC Brand

Specify radix for parseInt

parent 4aa123d5
......@@ -859,7 +859,7 @@
var resources = this.get('resources');
if (!_.isObject(resources)) { resources = {}; }
resources[resource] = {
'priority': _.isNaN(parseInt(priority)) ? 0 : parseInt(priority),
'priority': _.isNaN(parseInt(priority, 10)) ? 0 : parseInt(priority, 10),
'status': chat_status,
'timestamp': moment().format()
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment