mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Fix a counting mistake
This commit is contained in:
parent
249e0c1ee2
commit
c20abfef38
1 changed files with 1 additions and 1 deletions
|
|
@ -450,7 +450,7 @@ class OC_Share {
|
|||
$query = OC_DB::prepare('INSERT INTO *PREFIX*sharing VALUES(?,?,?,?,?)');
|
||||
$sharedFolder = '/'.$arguments['uid'].'/files/Shared/';
|
||||
$lastSource = '';
|
||||
for ($i = 0; i < count($result); $i++) {
|
||||
for ($i = 0; $i < count($result) - 1; $i++) {
|
||||
if ($result[$i]['source'] != $lastSource) {
|
||||
$query->execute(array($result[$i]['uid_owner'], $arguments['uid'].'@'.$arguments['gid'], $result[$i]['source'], $sharedFolder.basename($result[$i]['source']), $result[$i]['permissions']));
|
||||
$lastSource = $result[$i]['source'];
|
||||
|
|
|
|||
Loading…
Reference in a new issue