Use correct variable instead of uninitialized $path.

pull/88/head
Tomasz Muras 2020-07-14 17:14:51 +02:00
parent 0a0d2dcf22
commit f6931c2691
1 changed files with 1 additions and 1 deletions

View File

@ -911,7 +911,7 @@ class H5PValidator {
// This is a breaking error, there's no need to continue. (the rest of the files will fail as well) // This is a breaking error, there's no need to continue. (the rest of the files will fail as well)
$this->h5pF->setErrorMessage($this->h5pF->t('Unable to read file from the package: %fileName', array('%fileName' => $fileName)), 'unable-to-read-package-file'); $this->h5pF->setErrorMessage($this->h5pF->t('Unable to read file from the package: %fileName', array('%fileName' => $fileName)), 'unable-to-read-package-file');
$zip->close(); $zip->close();
unlink($path); unlink($tmpPath);
H5PCore::deleteFileTree($tmpDir); H5PCore::deleteFileTree($tmpDir);
return FALSE; return FALSE;
} }