From 646bc1fc24cab27da8f616b439ca6940e31fbbf9 Mon Sep 17 00:00:00 2001
From: Bart Visscher <bartv@thisnet.nl>
Date: Fri, 3 Aug 2012 16:11:10 +0200
Subject: [PATCH] Contacts: Fix no active Addressbooks

---
 apps/contacts/lib/addressbook.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/apps/contacts/lib/addressbook.php b/apps/contacts/lib/addressbook.php
index 1953b296616..974ecb4047d 100644
--- a/apps/contacts/lib/addressbook.php
+++ b/apps/contacts/lib/addressbook.php
@@ -219,6 +219,7 @@ class OC_Contacts_Addressbook{
 			OCP\Util::writeLog('contacts','OC_Contacts_Addressbook:active:, exception: '.$e->getMessage(),OCP\Util::DEBUG);
 			OCP\Util::writeLog('contacts','OC_Contacts_Addressbook:active, ids: '.join(',', $active),OCP\Util::DEBUG);
 			OCP\Util::writeLog('contacts','OC_Contacts_Addressbook::active, SQL:'.$prep,OCP\Util::DEBUG);
+			return array();
 		}
 
 		return $addressbooks;
-- 
GitLab