diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-04-15 20:26:04 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-04-23 12:54:26 +0200 |
commit | dd1e47b3b896e2ee59faf5f423bb911c5d2c2548 (patch) | |
tree | 53f729553c289a226ce43c284629de44f5bbe4a2 /apps/files_sharing/appinfo | |
parent | 2049bedcaf670ef2394ce8b19e0d3f2174513b53 (diff) | |
download | nextcloud-server-dd1e47b3b896e2ee59faf5f423bb911c5d2c2548.tar.gz nextcloud-server-dd1e47b3b896e2ee59faf5f423bb911c5d2c2548.zip |
typos, use, unused and return fixed
Diffstat (limited to 'apps/files_sharing/appinfo')
-rw-r--r-- | apps/files_sharing/appinfo/update.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_sharing/appinfo/update.php b/apps/files_sharing/appinfo/update.php index ebeeae10d2c..c79a2291e92 100644 --- a/apps/files_sharing/appinfo/update.php +++ b/apps/files_sharing/appinfo/update.php @@ -18,7 +18,7 @@ if (version_compare($installedVersion, '0.4', '<')) { $users[] = $row['share_with']; $shares[$row['id']] = $row['file_target']; } else if ($row['share_type'] === "1" && ($row['item_type'] === 'file' || $row['item_type'] === 'folder')) { - //collect all group sharesX + //collect all group shares $users = array_merge($users, \OC_group::usersInGroup($row['share_with'])); $shares[$row['id']] = $row['file_target']; } else if ($row['share_type'] === "2") { @@ -48,7 +48,9 @@ if (version_compare($installedVersion, '0.4', '<')) { $statement .= ' END WHERE `id` IN (' . $ids . ')'; $query = OCP\DB::prepare($statement); + $query->execute(array()); + } } |