From 60c4f81fda312da901de3918f78b369c03914dcc Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 12 May 2010 12:03:22 +0200 Subject: [PATCH] MFB: Skip vbooks if the base source is not (longer) available. --- turba/lib/Turba.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/turba/lib/Turba.php b/turba/lib/Turba.php index c8f4cf972..a468495aa 100644 --- a/turba/lib/Turba.php +++ b/turba/lib/Turba.php @@ -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', -- 2.11.0