aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-06-10 14:19:58 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-06-10 14:40:34 +0200
commitedf4594eb695d849131cf6d92ea182639b0dd499 (patch)
tree5f5d4a81960356ce69dd7c393fe881763f15bdd8
parent53cc2b746e800210382a335eacafe64b896e1b92 (diff)
downloadbugzilla-triage-edf4594eb695d849131cf6d92ea182639b0dd499.tar.gz
We should work even when interestingLineArr == 1.
We shouldn't check for its length, but for the length of interestingPCIID.
-rw-r--r--data/rhlib/rhbzpage.js2
1 files changed, 1 insertions, 1 deletions
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);