1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 04:10:38 +02:00

Fix for PHP Notice Undefined index: class, Line 739 of /e107_handlers/theme_handler.php

This commit is contained in:
Lóna Lore
2017-12-10 11:26:47 +01:00
parent 8789ce6f1c
commit 812746e718

View File

@@ -725,29 +725,24 @@ class e_theme
unset($vars['stylesheets']); unset($vars['stylesheets']);
} }
$vars['glyphs'] = array(); $vars['glyphs'] = array();
if(!empty($vars['glyphicons']['glyph'])) if(!empty($vars['glyphicons']['glyph']))
{ {
foreach($vars['glyphicons']['glyph'] as $val) foreach($vars['glyphicons']['glyph'] as $val)
{ {
$vars['glyphs'][] = array( $vars['glyphs'][] = array(
'name' => $val['@attributes']['name'], 'name' => isset($val['@attributes']['name']) ? $val['@attributes']['name'] : '',
'pattern' => $val['@attributes']['pattern'], 'pattern' => isset($val['@attributes']['pattern']) ? $val['@attributes']['pattern'] : '',
'path' => $val['@attributes']['path'], 'path' => isset($val['@attributes']['path']) ? $val['@attributes']['path'] : '',
'class' => $val['@attributes']['class'], 'class' => isset($val['@attributes']['class']) ? $val['@attributes']['class'] : '',
'prefix' => $val['@attributes']['prefix'], 'prefix' => isset($val['@attributes']['prefix']) ? $val['@attributes']['prefix'] : '',
'tag' => $val['@attributes']['tag'], 'tag' => isset($val['@attributes']['tag']) ? $val['@attributes']['tag'] : '',
); );
} }
unset($vars['glyphicons']); unset($vars['glyphicons']);
} }
if($path == "landingzero" ) if($path == "landingzero" )
{ {