mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
fixed double <global> in cat-selection for application global cats
This commit is contained in:
parent
5254c9690f
commit
e03b9a8a67
@ -226,20 +226,15 @@
|
|||||||
{
|
{
|
||||||
$GLOBALS['phpgw']->categories = CreateObject('phpgwapi.categories');
|
$GLOBALS['phpgw']->categories = CreateObject('phpgwapi.categories');
|
||||||
}
|
}
|
||||||
$cats = $GLOBALS['phpgw']->categories->return_sorted_array(0,False,'','','',!$type);
|
foreach((array)$GLOBALS['phpgw']->categories->return_sorted_array(0,False,'','','',!$type) as $cat)
|
||||||
|
{
|
||||||
|
$s = str_repeat(' ',$cat['level']) . $GLOBALS['egw']->strip_html($cat['name']);
|
||||||
|
|
||||||
while (list(,$cat) = @each($cats))
|
|
||||||
{
|
|
||||||
for ($j=0,$s=''; $j < $cat['level']; $j++)
|
|
||||||
{
|
|
||||||
$s .= ' ';
|
|
||||||
}
|
|
||||||
$s .= $GLOBALS['phpgw']->strip_html($cat['name']);
|
|
||||||
if ($cat['app_name'] == 'phpgw')
|
if ($cat['app_name'] == 'phpgw')
|
||||||
{
|
{
|
||||||
$s .= ' <' . lang('Global') . '>';
|
$s .= ' <' . lang('Global') . '>';
|
||||||
}
|
}
|
||||||
if ($cat['owner'] == '-1')
|
elseif ($cat['owner'] == '-1')
|
||||||
{
|
{
|
||||||
$s .= ' <' . lang('Global') . ' ' . lang($cat['app_name']) . '>';
|
$s .= ' <' . lang('Global') . ' ' . lang($cat['app_name']) . '>';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user