mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 01:43:47 +01: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')
|
||||
{
|
||||
if ($item == 'name')
|
||||
switch($item)
|
||||
{
|
||||
$value = 'cat_name';
|
||||
}
|
||||
elseif ($item == 'owner')
|
||||
{
|
||||
$value = 'cat_owner';
|
||||
}
|
||||
elseif ($item == 'main')
|
||||
{
|
||||
$value = 'cat_main';
|
||||
}
|
||||
endif;
|
||||
case 'name': $value = 'cat_name';
|
||||
case 'owner': $value = 'cat_owner';
|
||||
case 'main': $value = 'cat_main';
|
||||
return $value;
|
||||
}
|
||||
|
||||
$this->db->query("select $value from phpgw_categories where cat_id='"
|
||||
. "$cat_id'",__LINE__,__FILE__);
|
||||
|
Loading…
Reference in New Issue
Block a user