]> source.dussan.org Git - nextcloud-server.git/commitdiff
Contacts: Add removed app enabled check
authorBart Visscher <bartv@thisnet.nl>
Thu, 16 Feb 2012 18:16:31 +0000 (19:16 +0100)
committerBart Visscher <bartv@thisnet.nl>
Fri, 17 Feb 2012 21:07:14 +0000 (22:07 +0100)
apps/contacts/index.php

index c5115d16074d822e89db6353617f2fcb6f5c5633..0a21ddd04b6ac2ae70ec5ea40db81696ae623d95 100644 (file)
@@ -10,6 +10,8 @@ require_once('../../lib/base.php');
 
 // Check if we are a user
 OC_Util::checkLoggedIn();
+OC_Util::checkAppEnabled('contacts');
+
 // Get active address books. This creates a default one if none exists.
 $ids = OC_Contacts_Addressbook::activeIds(OC_User::getUser());
 $contacts = OC_Contacts_VCard::all($ids);