Skip to content
Snippets Groups Projects
Commit 404e3632 authored by Björn Schießle's avatar Björn Schießle
Browse files

first check if a extension exists before comparing it

parent 597a3cf1
Branches
No related tags found
No related merge requests found
...@@ -1292,7 +1292,7 @@ class Util { ...@@ -1292,7 +1292,7 @@ class Util {
$pathinfo = pathinfo($path); $pathinfo = pathinfo($path);
$partfile = false; $partfile = false;
$parentFolder = false; $parentFolder = false;
if ($pathinfo['extension'] === 'part') { if (array_key_exists('extension', $pathinfo) && $pathinfo['extension'] === 'part') {
// if the real file exists we check this file // if the real file exists we check this file
if ($this->view->file_exists($this->userFilesDir . '/' . $pathinfo['dirname'] . '/' . $pathinfo['filename'])) { if ($this->view->file_exists($this->userFilesDir . '/' . $pathinfo['dirname'] . '/' . $pathinfo['filename'])) {
$pathToCheck = $pathinfo['dirname'] . '/' . $pathinfo['filename']; $pathToCheck = $pathinfo['dirname'] . '/' . $pathinfo['filename'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment