skip addressbooks configured not to be shown (thanks Thierry Godefroy)
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 6 May 2008 15:02:34 +0000 (15:02 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 6 May 2008 15:02:34 +0000 (15:02 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13094 7612ce4b-ef26-0410-bec9-ea0150e637f0

templates/util_addressbook.php

index 3c2c5d6..49d05df 100644 (file)
@@ -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