1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-21 05:02:02 +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']);
}
$vars['glyphs'] = array();
if(!empty($vars['glyphicons']['glyph']))
{
foreach($vars['glyphicons']['glyph'] as $val)
{
$vars['glyphs'][] = array(
'name' => $val['@attributes']['name'],
'pattern' => $val['@attributes']['pattern'],
'path' => $val['@attributes']['path'],
'class' => $val['@attributes']['class'],
'prefix' => $val['@attributes']['prefix'],
'tag' => $val['@attributes']['tag'],
'name' => isset($val['@attributes']['name']) ? $val['@attributes']['name'] : '',
'pattern' => isset($val['@attributes']['pattern']) ? $val['@attributes']['pattern'] : '',
'path' => isset($val['@attributes']['path']) ? $val['@attributes']['path'] : '',
'class' => isset($val['@attributes']['class']) ? $val['@attributes']['class'] : '',
'prefix' => isset($val['@attributes']['prefix']) ? $val['@attributes']['prefix'] : '',
'tag' => isset($val['@attributes']['tag']) ? $val['@attributes']['tag'] : '',
);
}
unset($vars['glyphicons']);
}
if($path == "landingzero" )
{