Skip to content

Commit

Permalink
fix(YunoHost app importer): fallback for description
Browse files Browse the repository at this point in the history
  • Loading branch information
mrflos committed Nov 11, 2024
1 parent 75892e7 commit 5cd76d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/YunohostCLIAppImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function mapData($data)
if (!empty($item['domain_path'])) {
$preparedData[$i]['bf_titre'] = $item['name'];
$preparedData[$i]['yunohost_app_id'] = $item['settings']['app'];
$preparedData[$i]['bf_description'] = $item['manifest']['description'][$this->config['lang']];
$preparedData[$i]['bf_description'] = $item['manifest']['description'][$this->config['lang']] ?? $item['manifest']['description']['en'] ?? '';
if (!empty($item['permissions'][$item['settings']['app'] . '.main']['allowed'])) {
$preparedData[$i]['listeListeVisibilite'] = in_array('visitors', $item['permissions'][$item['settings']['app'] . '.main']['allowed']) ? 'pub' : 'priv';
} else {
Expand Down

0 comments on commit 5cd76d9

Please sign in to comment.