Skip to content
Snippets Groups Projects
Commit f44e617d authored by Vincent Petry's avatar Vincent Petry
Browse files

Fix warning with unset extension check

parent b920f888
No related branches found
No related tags found
No related merge requests found
...@@ -300,7 +300,7 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage { ...@@ -300,7 +300,7 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage {
$pathinfo = pathinfo($relPath1); $pathinfo = pathinfo($relPath1);
// for part files we need to ask for the owner and path from the parent directory because // 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 // 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']); list($user1, $path1) = \OCA\Files_Sharing\Helper::getUidAndFilename($pathinfo['dirname']);
$path1 = $path1 . '/' . $pathinfo['basename']; $path1 = $path1 . '/' . $pathinfo['basename'];
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment