From 55f2e20876ddcaeb3c86f88a2bc70f7d0929f0f1 Mon Sep 17 00:00:00 2001 From: thomasb Date: Fri, 13 May 2011 18:23:30 +0000 Subject: Don't connect to address books unless necessary git-svn-id: https://svn.roundcube.net/trunk@4766 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/steps/mail/func.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index 889406b15..cfdad791a 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/program/steps/mail/func.inc @@ -1248,7 +1248,7 @@ function rcmail_address_string($input, $max=null, $linked=false, $addicon=null) $j = 0; $out = ''; - if ($got_writable_abook === null && $books = $RCMAIL->get_address_sources(true)) { + if ($addicon && $got_writable_abook === null && $books = $RCMAIL->get_address_sources(true)) { $got_writable_abook = true; } -- cgit v1.2.3