forked from Wavyzz/dolibarr
Fix: possibility to add an image with no link
This commit is contained in:
@@ -372,10 +372,17 @@ function dol_fiche_head($links, $active='0', $title='', $notab=0, $picto='')
|
|||||||
for ($i = 0 ; $i < sizeof($links) ; $i++)
|
for ($i = 0 ; $i < sizeof($links) ; $i++)
|
||||||
{
|
{
|
||||||
if ($links[$i][2] == 'image')
|
if ($links[$i][2] == 'image')
|
||||||
|
{
|
||||||
|
if (!empty($links[$i][0]))
|
||||||
{
|
{
|
||||||
print '<a class="tabimage" href="'.$links[$i][0].'">'.$links[$i][1].'</a>'."\n";
|
print '<a class="tabimage" href="'.$links[$i][0].'">'.$links[$i][1].'</a>'."\n";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
print $links[$i][1]."\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
//print "x $i $active ".$links[$i][2]." z";
|
//print "x $i $active ".$links[$i][2]." z";
|
||||||
if ((is_numeric($active) && $i == $active)
|
if ((is_numeric($active) && $i == $active)
|
||||||
@@ -385,7 +392,7 @@ function dol_fiche_head($links, $active='0', $title='', $notab=0, $picto='')
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<a class="tab" href="'.$links[$i][0].'">'.$links[$i][1].'</a>'."\n";
|
print '<a id="'.$links[$i][2].'" class="tab" href="'.$links[$i][0].'">'.$links[$i][1].'</a>'."\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user