diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/classes/ElggPriorityList.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/classes/ElggPriorityList.js b/js/classes/ElggPriorityList.js index f7f91bb0f..b4cec5044 100644 --- a/js/classes/ElggPriorityList.js +++ b/js/classes/ElggPriorityList.js @@ -17,7 +17,7 @@ elgg.ElggPriorityList = function() { */ elgg.ElggPriorityList.prototype.insert = function(obj, opt_priority) { var priority = 500; - if (arguments.length == 2) { + if (arguments.length == 2 && opt_priority != undefined) { priority = parseInt(opt_priority, 10); } |