Skip to content

Commit 5cd76d9

Browse files
committed
fix(YunoHost app importer): fallback for description
1 parent 75892e7 commit 5cd76d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/YunohostCLIAppImporter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function mapData($data)
105105
if (!empty($item['domain_path'])) {
106106
$preparedData[$i]['bf_titre'] = $item['name'];
107107
$preparedData[$i]['yunohost_app_id'] = $item['settings']['app'];
108-
$preparedData[$i]['bf_description'] = $item['manifest']['description'][$this->config['lang']];
108+
$preparedData[$i]['bf_description'] = $item['manifest']['description'][$this->config['lang']] ?? $item['manifest']['description']['en'] ?? '';
109109
if (!empty($item['permissions'][$item['settings']['app'] . '.main']['allowed'])) {
110110
$preparedData[$i]['listeListeVisibilite'] = in_array('visitors', $item['permissions'][$item['settings']['app'] . '.main']['allowed']) ? 'pub' : 'priv';
111111
} else {

0 commit comments

Comments
 (0)