mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 20:31:31 +02:00
update function return_lingle to also return the app_name plus function id2name to only return -- if =='name'
This commit is contained in:
parent
1265474bfb
commit
444ef87edc
@ -428,19 +428,13 @@
|
|||||||
|
|
||||||
function id2name($cat_id, $item = 'name')
|
function id2name($cat_id, $item = 'name')
|
||||||
{
|
{
|
||||||
if ($item == 'name')
|
switch($item)
|
||||||
{
|
{
|
||||||
$value = 'cat_name';
|
case 'name': $value = 'cat_name';
|
||||||
}
|
case 'owner': $value = 'cat_owner';
|
||||||
elseif ($item == 'owner')
|
case 'main': $value = 'cat_main';
|
||||||
{
|
return $value;
|
||||||
$value = 'cat_owner';
|
}
|
||||||
}
|
|
||||||
elseif ($item == 'main')
|
|
||||||
{
|
|
||||||
$value = 'cat_main';
|
|
||||||
}
|
|
||||||
endif;
|
|
||||||
|
|
||||||
$this->db->query("select $value from phpgw_categories where cat_id='"
|
$this->db->query("select $value from phpgw_categories where cat_id='"
|
||||||
. "$cat_id'",__LINE__,__FILE__);
|
. "$cat_id'",__LINE__,__FILE__);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user