diff --git a/js/personAdmin/personSearch1.js b/js/personAdmin/personSearch1.js index 01802fc..807779d 100644 --- a/js/personAdmin/personSearch1.js +++ b/js/personAdmin/personSearch1.js @@ -117,7 +117,7 @@ function c_personSearch1 (fname, sname, fnameAlt, snameAlt, names, person) } if (this.person != null) - if (this.fNameBest[1] == 0) + if (this.sNameBest[1] == 0 && this.fNameBest[1] == 0) this.person.update ( this.persons[this.sNameBest[2]][this.fNameBest[2]]); else @@ -157,7 +157,7 @@ function c_personSearch1 (fname, sname, fnameAlt, snameAlt, names, person) len < dists.lenth) len++; else - len = dists.length - 1; + len = dists.length; for (var i=0; i