mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Preserve priority if already set
This commit is contained in:
parent
9151d72507
commit
e4d3ee7866
1 changed files with 5 additions and 0 deletions
|
|
@ -756,6 +756,11 @@ class OC_Mount_Config {
|
|||
$applicable = key($mountPoint);
|
||||
if (isset($data[$mountType])) {
|
||||
if (isset($data[$mountType][$applicable])) {
|
||||
if (isset($mountPoints[$mountType][$applicable][$mountPoint])
|
||||
&& isset($mountPoints[$mountType][$applicable][$mountPoint]['priority'])) {
|
||||
$mount[$applicable][$mountPoint]['priority']
|
||||
= $mountPoints[$mountType][$applicable][$mountPoint]['priority'];
|
||||
}
|
||||
$data[$mountType][$applicable]
|
||||
= array_merge($data[$mountType][$applicable], $mountPoint[$applicable]);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue