summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-05-04 10:06:37 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-05-04 10:06:37 +0000
commit91b4798b00f23d045b1c8eb559b36d59f671cda2 (patch)
treeea700ac4657d95a52ad2d4cf7e28c1538e39bd6e
parent1d349455530e10b453ace68c4b55854a7de196bc (diff)
Fix multi-threaded autocompletion when number of threads > number of sources
git-svn-id: https://svn.roundcube.net/trunk@6143 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/js/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index c440d169e..487d718e3 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -3812,7 +3812,7 @@ function rcube_webmail()
for (i=0; i<threads; i++) {
source = this.ksearch_data.sources.shift();
- if (threads > 1 && source === null)
+ if (threads > 1 && source === undefined)
break;
post_data._source = source ? source : '';