Skip to content

Commit cd8448f

Browse files
Update Font.php
1 parent f8c703d commit cd8448f

File tree

1 file changed

+5
-0
lines changed
  • astroid/astroid-framework/framework/library/astroid/Helper

1 file changed

+5
-0
lines changed

astroid/astroid-framework/framework/library/astroid/Helper/Font.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ public static function googleFonts()
4141
$app = \JFactory::getApplication();
4242
$fonts = Helper::getJSONData('webfonts');
4343
$options = [];
44+
45+
if (!isset($fonts['items'])) {
46+
return $options;
47+
}
48+
4449
foreach ($fonts['items'] as $font) {
4550
$variants = [];
4651
if (count($font['variants']) > 1) {

0 commit comments

Comments
 (0)