Use default priority of 100 if backend default is not set
This commit is contained in:
parent
da03ef25d9
commit
856c48bc25
|
@ -479,8 +479,13 @@ class OC_Mount_Config {
|
||||||
|
|
||||||
// Set default priority if none set
|
// Set default priority if none set
|
||||||
if (!isset($mountPoints[$mountType][$applicable][$mountPoint]['priority'])) {
|
if (!isset($mountPoints[$mountType][$applicable][$mountPoint]['priority'])) {
|
||||||
$mountPoints[$mountType][$applicable][$mountPoint]['priority']
|
if (isset($backends[$class]['priority'])) {
|
||||||
= $backends[$class]['priority'];
|
$mountPoints[$mountType][$applicable][$mountPoint]['priority']
|
||||||
|
= $backends[$class]['priority'];
|
||||||
|
} else {
|
||||||
|
$mountPoints[$mountType][$applicable][$mountPoint]['priority']
|
||||||
|
= 100;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
self::writeData($isPersonal ? OCP\User::getUser() : NULL, $mountPoints);
|
self::writeData($isPersonal ? OCP\User::getUser() : NULL, $mountPoints);
|
||||||
|
|
Loading…
Reference in New Issue