Skip to content

Commit

Permalink
Fix PHP warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwire committed Jan 10, 2024
1 parent 8e4e32d commit dca7d85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
File renamed without changes.
9 changes: 6 additions & 3 deletions managed/navigation.mgd.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,21 @@
],
];
$connectors = _civixero_get_connectors();
if (empty($connectors)) {
return $entities;
}
foreach ($connectors as $connectorID => $details) {
$entities[] = [
'name' => 'Xero Authorize ' . $details['name'],
'name' => 'Xero Authorize ' . ($details['name'] ?? ''),
'entity' => 'Navigation',
'cleanup' => 'always',
'update' => 'unmodified',
'params' => [
'version' => 4,
'values' => [
'domain_id' => 'current_domain',
'label' => E::ts('Xero Authorize') . ' ' . $details['name'],
'name' => 'Xero Authorize ' . $details['name'],
'label' => E::ts('Xero Authorize') . ' ' . ($details['name'] ?? ''),
'name' => 'Xero Authorize ' . ($details['name'] ?? ''),
'url' => 'civicrm/xero/authorize?connector_id=' . $connectorID,
'icon' => NULL,
'permission' => [
Expand Down

0 comments on commit dca7d85

Please sign in to comment.