Avoid error if categories were not provided, just skip styling

This commit is contained in:
Nathan Gray 2014-01-18 09:04:14 +00:00
parent 6688723a77
commit 1e379a7b8d

View File

@ -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];