From 3fba7044de4b09e12077a6ef3dbb5d0fad9580e5 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Fri, 22 Apr 2011 04:57:30 +0200 Subject: Fixed other functions broken * not all functions are able to accept the null as return value (directly or indirectly) of filterByRegexp * finally make all logic not to affect components which shouldn't be bothered with the test. --- data/lib/rhbzpage.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'data/lib/rhbzpage.js') diff --git a/data/lib/rhbzpage.js b/data/lib/rhbzpage.js index 327a1bf..55e0cc5 100644 --- a/data/lib/rhbzpage.js +++ b/data/lib/rhbzpage.js @@ -469,7 +469,9 @@ function RHBZinit() { if (constantData.xorgBugsCategories) { var XBZlist = filterByRegexp(constantData. xorgBugsCategories, getComponent()); - makeBugCategoriesList(XBZlist); + if (XBZlist) { + makeBugCategoriesList(XBZlist); + } } // Dig out backtrace protection against double-firing? -- cgit