@@ -8,7 +8,8 @@ |
||
| 8 | 8 | if ($customer->orgOpenpsaObtype < org_openpsa_contacts_group_dba::ORGANIZATION) { |
| 9 | 9 | $customer = false; |
| 10 | 10 | } |
| 11 | -} catch (midcom_error $e) { |
|
| 11 | +} |
|
| 12 | +catch (midcom_error $e) { |
|
| 12 | 13 | $customer = false; |
| 13 | 14 | } |
| 14 | 15 | |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | $prefix = $nap->get_node($this->_topic->id)[MIDCOM_NAV_ABSOLUTEURL]; |
| 28 | 28 | |
| 29 | 29 | $tree = new org_openpsa_widgets_tree(org_openpsa_contacts_group_dba::class, 'owner'); |
| 30 | - $tree->link_callback = function ($guid) use ($prefix) { |
|
| 30 | + $tree->link_callback = function($guid) use ($prefix) { |
|
| 31 | 31 | return $prefix . 'group/' . $guid . '/'; |
| 32 | 32 | }; |
| 33 | 33 | $tree->constraints[] = ['orgOpenpsaObtype', '<', org_openpsa_contacts_group_dba::ORGANIZATION]; |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | { |
| 44 | 44 | $my_company_guid = $this->_config->get('owner_organization'); |
| 45 | 45 | |
| 46 | - if ( empty($my_company_guid) |
|
| 46 | + if (empty($my_company_guid) |
|
| 47 | 47 | || !mgd_is_guid($my_company_guid)) { |
| 48 | 48 | if (midcom::get()->auth->admin) { |
| 49 | 49 | midcom::get()->uimessages->add( |