From f44e617dfdf79cedba4700bfb8e21ac9c51bb624 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Wed, 29 Oct 2014 12:56:49 +0100 Subject: [PATCH] Fix warning with unset extension check --- apps/files_sharing/lib/sharedstorage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5