]> 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 11:56:49 +0000 (12:56 +0100)
apps/files_sharing/lib/sharedstorage.php

index a2b485a2ca11388a074ccb141294ff7f2e708151..5ce15d9a01254ad86af8adb095661eefd89b4b03 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 {