minor fixes in customer-backup-flags integration
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user