From f05e2ae49701718ed972c4d5313cc95cabd410f0 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Thu, 10 Feb 2022 13:34:33 +0100 Subject: [PATCH] needle error --- core/module/theme/theme.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index debf25e7..e4e02ad7 100644 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -601,6 +601,7 @@ class theme extends common { public function fontAdd() { // Soumission du formulaire if ($this->isPost()) { + $fontId = $this->getInput('fontAddFontId', null, true); $fontName = $this->getInput('fontAddFontName', null, true); $filePath = $this->getInput('fontAddFile', null); @@ -611,6 +612,7 @@ class theme extends common { $data = helper::urlGetContents('https://www.cdnfonts.com/' . $fontId . '.font'); if ( $filePath === '' + && $fontName !== '' && strpos($data, $fontName) === false ) {