diff --git sites/all/modules/views/js/base.js sites/all/modules/views/js/base.js index 0b62214..14c8620 100644 --- js/base.js +++ js/base.js @@ -64,10 +64,12 @@ Drupal.Views.parseQueryString = function (query) { } var pairs = query.split('&'); for(var i in pairs) { - var pair = pairs[i].split('='); - // Ignore the 'q' path argument, if present. - if (pair[0] != 'q' && pair[1]) { - args[pair[0]] = decodeURIComponent(pair[1].replace(/\+/g, ' ')); + if (typeof(pairs[i]) == 'string') { + var pair = pairs[i].split('='); + // Ignore the 'q' path argument, if present. + if (pair[0] != 'q' && pair[1]) { + args[pair[0]] = decodeURIComponent(pair[1].replace(/\+/g, ' ')); + } } } return args;