mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
make sure keys in admin tree are unique, as we overwrite tree entries otherwise
This commit is contained in:
parent
f778150b5d
commit
b57d51138e
@ -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