Fix multi-threaded autocompletion when number of threads > number of sources

pull/1/head
thomascube 13 years ago
parent c168dd38c6
commit 5b04ddd6bc

@ -3812,7 +3812,7 @@ function rcube_webmail()
for (i=0; i<threads; i++) { for (i=0; i<threads; i++) {
source = this.ksearch_data.sources.shift(); source = this.ksearch_data.sources.shift();
if (threads > 1 && source === null) if (threads > 1 && source === undefined)
break; break;
post_data._source = source ? source : ''; post_data._source = source ? source : '';

Loading…
Cancel
Save