From 9afaf6e9fee3e635f4ddc46a3c1deebe70fbb796 Mon Sep 17 00:00:00 2001 From: Tomasz Muras Date: Tue, 14 Jul 2020 17:14:51 +0200 Subject: [PATCH] Use correct variable instead of uninitialized $path. --- h5p.classes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h5p.classes.php b/h5p.classes.php index a610431..687395b 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -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->h5pF->setErrorMessage($this->h5pF->t('Unable to read file from the package: %fileName', array('%fileName' => $fileName)), 'unable-to-read-package-file'); $zip->close(); - unlink($path); + unlink($tmpPath); H5PCore::deleteFileTree($tmpDir); return FALSE; }