mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-12-01 13:24:10 +01:00
Use category format const.
This commit is contained in:
parent
4e470cb2bf
commit
740995ced3
@ -33,7 +33,7 @@ $list = array();
|
|||||||
$catmgr = OC_Contacts_App::getVCategories();
|
$catmgr = OC_Contacts_App::getVCategories();
|
||||||
|
|
||||||
if(is_null($category)) {
|
if(is_null($category)) {
|
||||||
$categories = $catmgr->categories(true);
|
$categories = $catmgr->categories(OC_VCategories::FORMAT_MAP);
|
||||||
uasort($categories, 'cmpcategories');
|
uasort($categories, 'cmpcategories');
|
||||||
foreach($categories as $category) {
|
foreach($categories as $category) {
|
||||||
$list[$category['id']] = array(
|
$list[$category['id']] = array(
|
||||||
|
Loading…
Reference in New Issue
Block a user