2011-02-16 Miguel de Dios <miguel.dedios@artica.es>

* include/functions_visual_map.php: added lost safe_ouput in the extract
	DB fields.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3877 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2011-02-16 16:06:42 +00:00
parent 94b97d1688
commit 7031e87f54
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2011-02-16 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_visual_map.php: added lost safe_ouput in the extract
DB fields.
2011-02-16 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_visual_map.php: added function "createInternalNameItem"

View File

@ -966,7 +966,7 @@ function createInternalNameItem($label = null, $type, $image, $agent = null, $id
if (!empty($agent)) {
$text .= " (" . printTruncateText($agent, 10, false);
$moduleName = get_db_value('nombre', 'tagente_modulo', 'id_agente_modulo', $id_module);
$moduleName = safe_output(get_db_value('nombre', 'tagente_modulo', 'id_agente_modulo', $id_module));
if (!empty($moduleName)) {
$text .= " - " . printTruncateText($moduleName, 10, false);
}
@ -992,7 +992,7 @@ function get_items_parents($idVisual) {
foreach ($items as $item) {
$agent = null;
if ($item['id_agent'] != 0) {
$agent = get_agent_name($item['id_agent']);
$agent = safe_output(get_agent_name($item['id_agent']));
}
$return[$item['id']] = createInternalNameItem($item['label'],