2010-04-30 Sergio Martin <sergio.martin@artica.es>

* include/functions_ui.php: Fixed the access at the
	groups without icon. bug: 2944540 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2648 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2010-04-30 11:41:43 +00:00
parent 1d4762610a
commit 1a61540375
2 changed files with 15 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2010-04-30 Sergio Martin <sergio.martin@artica.es>
* include/functions_ui.php: Fixed the access at the
groups without icon. bug: 2944540
2010-04-30 Sergio Martin <sergio.martin@artica.es>
* operation/agentes/group_view.php: Fixed the group

View File

@ -238,14 +238,18 @@ function print_group_icon ($id_group, $return = false, $path = "groups_small", $
else
$icon = "world";
if (empty ($icon)) {
return "-";
}
$output = '';
if ($link) $output = '<a href="index.php?sec=estado&amp;sec2=operation/agentes/estado_agente&amp;refr=60&amp;group_id='.$id_group.'">';
$output .= '<img style="' . $style . '" class="bot" src="images/'.$path.'/'.$icon.'.png" alt="'.get_group_name ($id_group, true).'" title="'.get_group_name ($id_group, true).'" />';
if ($link) $output .= '</a>';
if ($link)
$output = '<a href="index.php?sec=estado&amp;sec2=operation/agentes/estado_agente&amp;refr=60&amp;group_id='.$id_group.'">';
if (empty ($icon))
$output .= '<span title="'.get_group_name ($id_group, true).'">&nbsp;-&nbsp</span>';
else
$output .= '<img style="' . $style . '" class="bot" src="images/'.$path.'/'.$icon.'.png" alt="'.get_group_name ($id_group, true).'" title="'.get_group_name ($id_group, true).'" />';
if ($link)
$output .= '</a>';
if (!$return)
echo $output;