summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorniko <niko>2012-10-27 00:48:03 (GMT)
committerniko <niko>2012-10-27 00:48:03 (GMT)
commitc30b6d0c8837a947ce6f817e147c32b083c09754 (patch)
tree2ea6214cb3640eb7a1283015293122975064c7c9
parent23f86ba282449381f8ed5dc82b50673a02c6b93f (diff)
downloadsynckolab-c30b6d0c8837a947ce6f817e147c32b083c09754.tar.gz
fix for #25064
-rw-r--r--src/chrome/content/synckolab/config.js2
-rw-r--r--src/chrome/content/synckolab/wndConfig.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/chrome/content/synckolab/config.js b/src/chrome/content/synckolab/config.js
index 1157f1f..3eafcce 100644
--- a/src/chrome/content/synckolab/config.js
+++ b/src/chrome/content/synckolab/config.js
@@ -162,7 +162,7 @@ synckolab.config.loadAccountConfig = function (pref, acct) {
if(sConfs) {
for(i = 0; i < sConfs.length; i++) {
// skip empty configs
- if(sConfs[i].length <= 3) {
+ if(sConfs[i].length === 0) {
continue;
}
var cConf = {
diff --git a/src/chrome/content/synckolab/wndConfig.js b/src/chrome/content/synckolab/wndConfig.js
index e6fc711..4d2ee31 100644
--- a/src/chrome/content/synckolab/wndConfig.js
+++ b/src/chrome/content/synckolab/wndConfig.js
@@ -100,7 +100,7 @@ synckolab.settings.writeConfiguration = function(config) {
var acctList = "";
for(i = 0; i < config.accounts.length; i++) {
// skip invalid account names
- if(!config.accounts[i] || !config.accounts[i].name || config.accounts[i].name.length < 3) {
+ if(!config.accounts[i] || !config.accounts[i].name || config.accounts[i].name.length === 0) {
continue;
}
@@ -158,7 +158,7 @@ synckolab.settings.writeAccountConfig = function (pref, acct, orig) {
configs = "";
for(i=0; i < acct[type].length; i++) {
- if(!acct[type][i] || !acct[type][i].name || acct[type][i].name.length < 3) {
+ if(!acct[type][i] || !acct[type][i].name || acct[type][i].name.length === 0) {
continue;
}