diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php
index 0bbd7550d74dce4638cc3f5e74f559f59f680513..d7cbb700321fe24cbcec33ee760c179de6df12f4 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) {