MFB: Skip vbooks if the base source is not (longer) available.
authorJan Schneider <jan@horde.org>
Wed, 12 May 2010 10:03:22 +0000 (12:03 +0200)
committerJan Schneider <jan@horde.org>
Wed, 12 May 2010 10:03:36 +0000 (12:03 +0200)
turba/lib/Turba.php

index c8f4cf9..a468495 100644 (file)
@@ -457,6 +457,9 @@ class Turba {
 
         // Add vbooks now that all available address books are loaded.
         foreach ($vbooks as $name => $params) {
+            if (!isset($newSources[$params['source']])) {
+                continue;
+            }
             $newSources[$name] = array(
                 'title' => $shares[$name]->get('name'),
                 'type' => 'vbook',