From 1e379a7b8dac85dd2e53ad13a03e94669f603d4b Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Sat, 18 Jan 2014 09:04:14 +0000 Subject: [PATCH] Avoid error if categories were not provided, just skip styling --- etemplate/js/et2_extension_nextmatch_rowProvider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];