From 8a5946fadc12b7327263eb1ec6bdb70a9718dd3e Mon Sep 17 00:00:00 2001
From: Michael Gapczynski <mtgap@owncloud.com>
Date: Sat, 9 Mar 2013 21:09:31 -0500
Subject: [PATCH] Fix variable for mounting for all users, fix #357

---
 lib/files/filesystem.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php
index 0bbd7550d7..d7cbb70032 100644
--- a/lib/files/filesystem.php
+++ b/lib/files/filesystem.php
@@ -249,7 +249,7 @@ class Filesystem {
 			}
 			if (isset($mountConfig['user'])) {
 				foreach ($mountConfig['user'] as $mountUser => $mounts) {
-					if ($user === 'all' or strtolower($mountUser) === strtolower($user)) {
+					if ($mountUser === 'all' or strtolower($mountUser) === strtolower($user)) {
 						foreach ($mounts as $mountPoint => $options) {
 							$mountPoint = self::setUserVars($user, $mountPoint);
 							foreach ($options as &$option) {
-- 
GitLab