From eb8c2341659e0ffce3968482344e6a3d7200faac Mon Sep 17 00:00:00 2001 From: kink Date: Tue, 6 May 2008 15:02:34 +0000 Subject: [PATCH] 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 --- templates/util_addressbook.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.25.1