From edf4594eb695d849131cf6d92ea182639b0dd499 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Fri, 10 Jun 2011 14:19:58 +0200 Subject: We should work even when interestingLineArr == 1. We shouldn't check for its length, but for the length of interestingPCIID. --- data/rhlib/rhbzpage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data') diff --git a/data/rhlib/rhbzpage.js b/data/rhlib/rhbzpage.js index d65ad8d..a32f7fc 100644 --- a/data/rhlib/rhbzpage.js +++ b/data/rhlib/rhbzpage.js @@ -232,7 +232,7 @@ function chipsetMagic (interestingLineArr) { var interestingPCIID = interestingArray[2].trim().split(":"); // If we have Chipset line, we should parse it as well and // add to the button - if (interestingLineArr.length > 1) { + if (interestingPCIID.length > 1) { var PCIid = (interestingPCIID[0] + ":" + interestingPCIID[1]). toUpperCase(); console.myDebug("PCIid = " + PCIid); -- cgit