From: kink Date: Tue, 6 May 2008 15:02:34 +0000 (+0000) Subject: skip addressbooks configured not to be shown (thanks Thierry Godefroy) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=eb8c2341659e0ffce3968482344e6a3d7200faac;p=squirrelmail.git skip addressbooks configured not to be shown (thanks Thierry Godefroy) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13094 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/templates/util_addressbook.php b/templates/util_addressbook.php index 3c2c5d62..49d05df6 100644 --- a/templates/util_addressbook.php +++ b/templates/util_addressbook.php @@ -185,9 +185,11 @@ function getBackends () { $backends['-1'] = _("All address books"); $ret = $abook->get_backend_list(); while (list($undef,$v) = each($ret)) { + if ($v->btype == 'local' && !$v->listing) { + continue; + } $backends[$v->bnum] = $v->sname; } return $backends; } -?> \ No newline at end of file