needle error

This commit is contained in:
fredtempez 2022-02-10 13:34:33 +01:00
parent 0128e3620d
commit f05e2ae497
1 changed files with 2 additions and 0 deletions

View File

@ -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
) {