]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix warning with unset extension check
authorVincent Petry <pvince81@owncloud.com>
Wed, 29 Oct 2014 11:56:49 +0000 (12:56 +0100)
committerVincent Petry <pvince81@owncloud.com>
Wed, 29 Oct 2014 15:11:11 +0000 (16:11 +0100)
apps/files_sharing/lib/sharedstorage.php

index dc1616161105c6a03aa1ea1705c893b75009a400..4e0805cb7d6625f45abfe274a27c85d136ea2767 100644 (file)
@@ -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 {