diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-10-29 14:56:49 +0300 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-10-29 18:11:11 +0300 |
commit | 68dd41a4c9d806ba41604be8b035923312c48248 (patch) | |
tree | 0b16cad38ffa28daed09c41fd057b7993c547fdc | |
parent | 0d02aa791087e521b5c55d49f11f05154373504d (diff) |
Fix warning with unset extension check
-rw-r--r-- | apps/files_sharing/lib/sharedstorage.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php index dc161616110..4e0805cb7d6 100644 --- a/apps/files_sharing/lib/sharedstorage.php +++ b/apps/files_sharing/lib/sharedstorage.php @@ -300,7 +300,7 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage { $pathinfo = pathinfo($relPath1); // for part files we need to ask for the owner and path from the parent directory because // the file cache doesn't return any results for part files - if ($pathinfo['extension'] === 'part') { + if (isset($pathinfo['extension']) && $pathinfo['extension'] === 'part') { list($user1, $path1) = \OCA\Files_Sharing\Helper::getUidAndFilename($pathinfo['dirname']); $path1 = $path1 . '/' . $pathinfo['basename']; } else { |