Fix JS object injection.
This commit is contained in:
parent
9b35380849
commit
038bccb3ca
1 changed files with 2 additions and 2 deletions
|
@ -108,9 +108,9 @@ function countPV(path, rows) {
|
|||
|
||||
if (typeof rows !== "undefined" ) {
|
||||
for (var i = 0; i < rows.length; ++i) {
|
||||
var gaPath = rows[i][0];
|
||||
var gaPath = rows[parseInt(i, 10)][0];
|
||||
if (gaPath === path) { /* path format see: site.permalink */
|
||||
count += parseInt(rows[i][1], 10);
|
||||
count += parseInt(rows[parseInt(i, 10)][1], 10);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue