diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-10-29 12:56:49 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-10-29 12:56:49 +0100 |
commit | f44e617dfdf79cedba4700bfb8e21ac9c51bb624 (patch) | |
tree | fe92b3c33ae0fbc4e633a0809528ea4fdc7d1458 /apps | |
parent | b920f888ae6efab4febfd5138684e91621ea8dd8 (diff) | |
download | nextcloud-server-f44e617dfdf79cedba4700bfb8e21ac9c51bb624.tar.gz nextcloud-server-f44e617dfdf79cedba4700bfb8e21ac9c51bb624.zip |
Fix warning with unset extension check
Diffstat (limited to 'apps')
-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 a2b485a2ca1..5ce15d9a012 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 { |