Skip to content
Snippets Groups Projects
Commit f496a9de authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

Rename $contacts to $has_contacts, it missed this commit: 7cb74a0b

parent 8890a412
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ OCP\App::checkAppEnabled('contacts'); ...@@ -15,7 +15,7 @@ OCP\App::checkAppEnabled('contacts');
// Get active address books. This creates a default one if none exists. // Get active address books. This creates a default one if none exists.
$ids = OC_Contacts_Addressbook::activeIds(OCP\USER::getUser()); $ids = OC_Contacts_Addressbook::activeIds(OCP\USER::getUser());
$has_contacts = (count(OC_Contacts_VCard::all($ids, 0, 1)) > 0 ? true : false); // just to check if there are any contacts. $has_contacts = (count(OC_Contacts_VCard::all($ids, 0, 1)) > 0 ? true : false); // just to check if there are any contacts.
if($contacts === false) { if($has_contacts === false) {
OCP\Util::writeLog('contacts','index.html: No contacts found.',OCP\Util::DEBUG); OCP\Util::writeLog('contacts','index.html: No contacts found.',OCP\Util::DEBUG);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment