Merge pull request #12068 from stweil/lgtm

Fix off-by-one bugs
This commit is contained in:
blizzz 2018-10-26 18:06:02 +02:00 committed by GitHub
commit 6fcaa6fb9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ OCA = OCA || {};
// for example, BaseDN detector needs the port. The port is typically found
// by the Port Detector. If BaseDN detector was run first, it will not have
// all necessary information. Only after Port Detector was executed…
for (var i = 0; i <= detectors.length; i++) {
for (var i = 0; i < detectors.length; i++) {
model.registerDetector(detectors[i]);
}
@ -61,7 +61,7 @@ OCA = OCA || {};
var view = new OCA.LDAP.Wizard.WizardView(model);
view.init();
view.setModel(model);
for (var j = 0; j <= tabs.length; j++) {
for (var j = 0; j < tabs.length; j++) {
view.registerTab(tabs[j], '#ldapWizard' + (j + 2));
}