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 3c2c5d62c881d39a6e58d1ce3ab18751e4a5f386..49d05df6e94ca554c6d81c3f55c8f2c229f068d8 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