Don't connect to address books unless necessary

release-0.6
thomascube 14 years ago
parent 6b19999841
commit e2f185e1b3

@ -1248,7 +1248,7 @@ function rcmail_address_string($input, $max=null, $linked=false, $addicon=null)
$j = 0; $j = 0;
$out = ''; $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; $got_writable_abook = true;
} }

Loading…
Cancel
Save