needle error

This commit is contained in:
fredtempez 2022-02-10 13:34:33 +01:00
parent 0128e3620d
commit f05e2ae497

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