mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-10-10 19:12:42 +00:00
check if 'link' and 'attributes' are set in menuitem before using them
This commit is contained in:
parent
76720ccabf
commit
9e076ffcf9
|
@ -76,10 +76,11 @@ class SeedDMS_View_Clipboard extends SeedDMS_Bootstrap_Style {
|
||||||
foreach($menuitems as $menuitem) {
|
foreach($menuitems as $menuitem) {
|
||||||
$content .= "<li>";
|
$content .= "<li>";
|
||||||
$content .= "<a";
|
$content .= "<a";
|
||||||
if($menuitem['link'])
|
if(!empty($menuitem['link']))
|
||||||
$content .= ' href="'.$menuitem['link'].'"';
|
$content .= ' href="'.$menuitem['link'].'"';
|
||||||
foreach($menuitem['attributes'] as $attr)
|
if(!empty($menuitem['attributes']))
|
||||||
$content .= ' '.$attr[0].'="'.$attr[1].'"';
|
foreach($menuitem['attributes'] as $attr)
|
||||||
|
$content .= ' '.$attr[0].'="'.$attr[1].'"';
|
||||||
$content .= ">";
|
$content .= ">";
|
||||||
$content .= getMLText($menuitem['label']);
|
$content .= getMLText($menuitem['label']);
|
||||||
$content .= "</a></li>";
|
$content .= "</a></li>";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user