mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-16 13:03:16 +01:00
make sure keys in admin tree are unique, as we overwrite tree entries otherwise
This commit is contained in:
parent
aa5a72db84
commit
2744ec2d22
@ -372,10 +372,6 @@ class admin_ui
|
||||
{
|
||||
$data['id'] .= $matches[2][(int)array_search('load', $matches[1])];
|
||||
}
|
||||
else
|
||||
{
|
||||
$data['id'] .= md5($data['link']);
|
||||
}
|
||||
}
|
||||
if (!empty($data['icon']))
|
||||
{
|
||||
@ -416,7 +412,8 @@ class admin_ui
|
||||
}
|
||||
$data['text'] = lang($data['text']);
|
||||
if (!empty($data['tooltip'])) $data['tooltip'] = lang($data['tooltip']);
|
||||
|
||||
// make sure keys are unique, as we overwrite tree entries otherwise
|
||||
if (isset($parent[$data['id']])) $data['id'] .= md5($data['link']);
|
||||
$parent[$data['id']] = self::fix_userdata($data);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user