minor fixes in customer-backup-flags integration

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2023-06-07 21:08:04 +02:00
parent 6f5e49de79
commit 1cf5865bba
5 changed files with 36 additions and 41 deletions

View File

@@ -235,10 +235,7 @@ if (($page == 'customers' || $page == 'overview') && $userinfo['customers'] != '
$result_json = BackupStorages::getLocal($userinfo)->listing();
$result_decoded = json_decode($result_json, true)['data']['list'];
foreach ($result_decoded as $storagedata) {
$backup_storages[] = [
'label' => $storagedata['description'] . '(' . $storagedata['type'] . ')',
'value' => $storagedata['id']
];
$backup_storages[$storagedata['id']] = $storagedata['description'] . ' (' . $storagedata['type'] . ')';
}
} catch (Exception $e) {
/* just none */
@@ -337,10 +334,7 @@ if (($page == 'customers' || $page == 'overview') && $userinfo['customers'] != '
$result_json = BackupStorages::getLocal($userinfo)->listing();
$result_decoded = json_decode($result_json, true)['data']['list'];
foreach ($result_decoded as $storagedata) {
$backup_storages[] = [
'label' => $storagedata['description'] . '(' . $storagedata['type'] . ')',
'value' => $storagedata['id']
];
$backup_storages[$storagedata['id']] = $storagedata['description'] . ' (' . $storagedata['type'] . ')';
}
} catch (Exception $e) {
/* just none */