Contacts: Add removed app enabled check

remotes/origin/stable4
Bart Visscher 13 years ago
parent f54c767d72
commit 5f3c549227
  1. 2
      apps/contacts/index.php

@ -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);

Loading…
Cancel
Save