diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-10-17 15:47:36 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-10-17 15:47:36 +0200 |
commit | e7dc6b21c8994a7ade7d88ab4e27957e8a4ec9c9 (patch) | |
tree | 5fcb436c385c6d070a30295dabb6388e0f9f6a4f /apps/files_sharing | |
parent | 99738ae0bc204709e47ea42cd1a2b5694b2b1222 (diff) | |
download | nextcloud-server-e7dc6b21c8994a7ade7d88ab4e27957e8a4ec9c9.tar.gz nextcloud-server-e7dc6b21c8994a7ade7d88ab4e27957e8a4ec9c9.zip |
split up reset()['path'] to make it compatible with older PHP versions
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/lib/api.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/api.php b/apps/files_sharing/lib/api.php index 15bd7be9143..d92d30156cb 100644 --- a/apps/files_sharing/lib/api.php +++ b/apps/files_sharing/lib/api.php @@ -132,7 +132,8 @@ class Api { // if there are no shares than there are also no reshares if (count($shares) > 0) { $ids = array(); - $path = reset($shares)['path']; + $firstShare = reset($shares); + $path = $firstShare['path']; foreach ($shares as $share) { $ids[] = $share['id']; } |