mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-01 22:47:19 +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) {
|
||||
$content .= "<li>";
|
||||
$content .= "<a";
|
||||
if($menuitem['link'])
|
||||
if(!empty($menuitem['link']))
|
||||
$content .= ' href="'.$menuitem['link'].'"';
|
||||
foreach($menuitem['attributes'] as $attr)
|
||||
$content .= ' '.$attr[0].'="'.$attr[1].'"';
|
||||
if(!empty($menuitem['attributes']))
|
||||
foreach($menuitem['attributes'] as $attr)
|
||||
$content .= ' '.$attr[0].'="'.$attr[1].'"';
|
||||
$content .= ">";
|
||||
$content .= getMLText($menuitem['label']);
|
||||
$content .= "</a></li>";
|
||||
|
|
Loading…
Reference in New Issue
Block a user