2012-12-11 Sergio Martin <sergio.martin@artica.es>

* include/functions_network_components.php: Improve 
	network component retrieving to get the category name too



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7255 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2012-12-11 11:35:08 +00:00
parent 6851da50c3
commit 6573f7a72b
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-12-11 Sergio Martin <sergio.martin@artica.es>
* include/functions_network_components.php: Improve
network component retrieving to get the category name too
2012-12-11 Sergio Martin <sergio.martin@artica.es> 2012-12-11 Sergio Martin <sergio.martin@artica.es>
* godmode/agentes/module_manager_editor_common.php * godmode/agentes/module_manager_editor_common.php

View File

@ -222,7 +222,13 @@ function network_components_get_network_component ($id_network_component, $filte
$filter = array (); $filter = array ();
$filter['id_nc'] = (int) $id_network_component; $filter['id_nc'] = (int) $id_network_component;
return db_get_row_filter ('tnetwork_component', $filter, $fields); $network_component = db_get_row_filter ('tnetwork_component', $filter, $fields);
if(!empty($network_component) && $network_component['id_category'] != 0) {
$network_component['category_name'] = (string) db_get_value('name','tcategory','id',$network_component['id_category']);
}
return $network_component;
} }
/** /**