first check if a extension exists before comparing it
This commit is contained in:
parent
597a3cf1ad
commit
404e36323a
1 changed files with 1 additions and 1 deletions
|
@ -1292,7 +1292,7 @@ class Util {
|
|||
$pathinfo = pathinfo($path);
|
||||
$partfile = 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 ($this->view->file_exists($this->userFilesDir . '/' . $pathinfo['dirname'] . '/' . $pathinfo['filename'])) {
|
||||
$pathToCheck = $pathinfo['dirname'] . '/' . $pathinfo['filename'];
|
||||
|
|
Loading…
Reference in a new issue