Preserve priority if already set

This commit is contained in:
Robin McCorkell 2014-04-03 14:57:35 +01:00
parent 9151d72507
commit e4d3ee7866
1 changed files with 5 additions and 0 deletions

View File

@ -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 {