From: Vincent Petry Date: Wed, 29 Oct 2014 11:56:49 +0000 (+0100) Subject: Fix warning with unset extension check X-Git-Tag: v7.0.3RC2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=68dd41a4c9d806ba41604be8b035923312c48248;p=nextcloud-server.git Fix warning with unset extension check --- 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 {