summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2012-05-04 10:06:37 +0000
committerthomascube <thomas@roundcube.net>2012-05-04 10:06:37 +0000
commit5b04ddd6bc9e0af5f73694371cd3988b1d5be7e8 (patch)
tree18a2f23318ab3b0fd6f391cdd72d6542e199c485 /program
parentc168dd38c6a7d2bbe756ad9613c7f21766fc33fd (diff)
Fix multi-threaded autocompletion when number of threads > number of sources
Diffstat (limited to 'program')
-rw-r--r--program/js/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index c440d169e..487d718e3 100644
--- a/program/js/app.js
+++ b/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 : '';