]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix SMB backend registration
authorRobin McCorkell <robin@mccorkell.me.uk>
Mon, 30 May 2016 20:25:10 +0000 (21:25 +0100)
committerRobin McCorkell <robin@mccorkell.me.uk>
Mon, 30 May 2016 20:25:10 +0000 (21:25 +0100)
apps/files_external/lib/AppInfo/Application.php

index c77a2ae5280f2c9fdbaed9e34a004ed5abcfa85b..f78411038fa779006f91d67958df3a513b934c08 100644 (file)
@@ -89,10 +89,8 @@ class Application extends App implements IBackendProvider, IAuthMechanismProvide
                ];
 
                if (!\OC_Util::runningOnWindows()) {
-                       $backends += [
-                               $container->query('OCA\Files_External\Lib\Backend\SMB'),
-                               $container->query('OCA\Files_External\Lib\Backend\SMB_OC'),
-                       ];
+                       $backends[] = $container->query('OCA\Files_External\Lib\Backend\SMB');
+                       $backends[] = $container->query('OCA\Files_External\Lib\Backend\SMB_OC');
                }
 
                return $backends;