diff --git a/etemplate/js/et2_extension_nextmatch_rowProvider.js b/etemplate/js/et2_extension_nextmatch_rowProvider.js index c0658c3f70..1789de6058 100644 --- a/etemplate/js/et2_extension_nextmatch_rowProvider.js +++ b/etemplate/js/et2_extension_nextmatch_rowProvider.js @@ -483,7 +483,7 @@ var et2_nextmatch_rowProvider = Class.extend( // Cache if(categories) this.categories = categories; } - for(var i = 0; i < cats.length; i++) + for(var i = 0; i < cats.length && this.categories; i++) { // Need cat_, classes can't start with a number var cat_id = cats[i];