diff options
author | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2014-05-21 22:31:18 +0100 |
---|---|---|
committer | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2014-05-21 22:31:18 +0100 |
commit | 856c48bc25ed3abb99763a1baa4a97efc41f1d10 (patch) | |
tree | d980b8dda7414aa5e16192c5d0bb81f485b2eb43 /apps/files_external | |
parent | da03ef25d99bcc756c69923e347521340487f798 (diff) | |
download | nextcloud-server-856c48bc25ed3abb99763a1baa4a97efc41f1d10.tar.gz nextcloud-server-856c48bc25ed3abb99763a1baa4a97efc41f1d10.zip |
Use default priority of 100 if backend default is not set
Diffstat (limited to 'apps/files_external')
-rwxr-xr-x | apps/files_external/lib/config.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index c69cac874cb..21f63bf439d 100755 --- a/apps/files_external/lib/config.php +++ b/apps/files_external/lib/config.php @@ -479,8 +479,13 @@ class OC_Mount_Config { // Set default priority if none set if (!isset($mountPoints[$mountType][$applicable][$mountPoint]['priority'])) { - $mountPoints[$mountType][$applicable][$mountPoint]['priority'] - = $backends[$class]['priority']; + if (isset($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); |