Browse Source

skip addressbooks configured not to be shown (thanks Thierry Godefroy)

Thijs Kinkhorst 17 years ago
parent
commit
16d393c882
1 changed files with 3 additions and 1 deletions
  1. 3 1
      templates/util_addressbook.php

+ 3 - 1
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;
 }
-?>