瀏覽代碼

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

Thijs Kinkhorst 17 年之前
父節點
當前提交
16d393c882
共有 1 個文件被更改,包括 3 次插入1 次删除
  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;
 }
-?>