Explorar o código

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

Thijs Kinkhorst %!s(int64=17) %!d(string=hai) anos
pai
achega
16d393c882
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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;
 }
-?>