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:
parent
1d4762610a
commit
1a61540375
|
@ -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
|
||||
|
|
|
@ -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&sec2=operation/agentes/estado_agente&refr=60&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&sec2=operation/agentes/estado_agente&refr=60&group_id='.$id_group.'">';
|
||||
|
||||
if (empty ($icon))
|
||||
$output .= '<span title="'.get_group_name ($id_group, true).'"> - </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;
|
||||
|
|
Loading…
Reference in New Issue