Revert "Fix a counting mistake"

This reverts commit c20abfef38.
This commit is contained in:
Michael Gapczynski 2012-06-14 15:04:49 -04:00
parent ec69377ade
commit f7e686d4f1

View file

@ -495,7 +495,7 @@ class OC_Share {
$result = $query->execute(array($gid))->fetchAll();
if (count($result) > 0) {
$lastSource = '';
for ($i = 0; $i < count($result) - 1; $i++) {
for ($i = 0; i < count($result); $i++) {
if ($result[$i]['source'] != $lastSource) {
new OC_Share($result[$i]['source'], $arguments['gid'], $result[$i]['permissions']);
$lastSource = $result[$i]['source'];