diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index ec591ad2..97f5ba8e 100644 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -1130,7 +1130,7 @@ class theme extends common { $f ['websafe'] = self::$fontsWebSafe; // Construit un tableau avec leur ID et leur famille foreach(['websafe', 'imported', 'files'] as $type) { - if(array_key_exists($type, $f)) { + if(is_array($f[$type])) { foreach ($f[$type] as $fontId => $fontValue ) { $fonts [$fontId] = $fontValue['name']; }