fix indention

This commit is contained in:
Björn Schießle 2013-03-20 12:58:39 +01:00
parent 102120f105
commit abd48496d2

View file

@ -38,12 +38,12 @@ class Shared_Updater {
while (!empty($users)) { while (!empty($users)) {
$reshareUsers = array(); $reshareUsers = array();
foreach ($users as $user) { foreach ($users as $user) {
if ( $user !== $uidOwner ) { if ( $user !== $uidOwner ) {
$etag = \OC\Files\Filesystem::getETag(''); $etag = \OC\Files\Filesystem::getETag('');
\OCP\Config::setUserValue($user, 'files_sharing', 'etag', $etag); \OCP\Config::setUserValue($user, 'files_sharing', 'etag', $etag);
// Look for reshares // Look for reshares
$reshareUsers = array_merge($reshareUsers, \OCP\Share::getUsersItemShared('file', $info['fileid'], $user, true)); $reshareUsers = array_merge($reshareUsers, \OCP\Share::getUsersItemShared('file', $info['fileid'], $user, true));
} }
} }
$users = $reshareUsers; $users = $reshareUsers;
} }
@ -90,12 +90,12 @@ class Shared_Updater {
while (!empty($users)) { while (!empty($users)) {
$reshareUsers = array(); $reshareUsers = array();
foreach ($users as $user) { foreach ($users as $user) {
if ($user !== $uidOwner) { if ($user !== $uidOwner) {
$etag = \OC\Files\Filesystem::getETag(''); $etag = \OC\Files\Filesystem::getETag('');
\OCP\Config::setUserValue($user, 'files_sharing', 'etag', $etag); \OCP\Config::setUserValue($user, 'files_sharing', 'etag', $etag);
// Look for reshares // Look for reshares
$reshareUsers = array_merge($reshareUsers, \OCP\Share::getUsersItemShared('file', $params['fileSource'], $user, true)); $reshareUsers = array_merge($reshareUsers, \OCP\Share::getUsersItemShared('file', $params['fileSource'], $user, true));
} }
} }
$users = $reshareUsers; $users = $reshareUsers;
} }