mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-23 19:31:53 +02:00
fixed in wrong order displayed sub-categories
This commit is contained in:
parent
6bf3be83fc
commit
3ce3cde916
@ -187,7 +187,8 @@ class select_widget
|
|||||||
{
|
{
|
||||||
$categories = new categories('',$type3);
|
$categories = new categories('',$type3);
|
||||||
}
|
}
|
||||||
foreach((array)$categories->return_sorted_array(0,False,'','','',!$type,$type4) as $cat)
|
// we cast $type4 (parent) to int, to get default of 0 if omitted
|
||||||
|
foreach((array)$categories->return_sorted_array(0,False,'','','',!$type,(int)$type4) as $cat)
|
||||||
{
|
{
|
||||||
$s = str_repeat(' ',$cat['level']) . stripslashes($cat['name']);
|
$s = str_repeat(' ',$cat['level']) . stripslashes($cat['name']);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user