forked from Wavyzz/dolibarr
Remove warnings
This commit is contained in:
@@ -602,7 +602,7 @@ class ExtraFields
|
|||||||
$this->attribute_elementtype[$tab->name]=$tab->elementtype;
|
$this->attribute_elementtype[$tab->name]=$tab->elementtype;
|
||||||
$this->attribute_unique[$tab->name]=$tab->fieldunique;
|
$this->attribute_unique[$tab->name]=$tab->fieldunique;
|
||||||
$this->attribute_required[$tab->name]=$tab->fieldrequired;
|
$this->attribute_required[$tab->name]=$tab->fieldrequired;
|
||||||
$this->attribute_param[$tab->name]=unserialize($tab->param);
|
$this->attribute_param[$tab->name]=($tab->param ? unserialize($tab->param) : '');
|
||||||
$this->attribute_pos[$tab->name]=$tab->pos;
|
$this->attribute_pos[$tab->name]=$tab->pos;
|
||||||
$this->attribute_alwayseditable[$tab->name]=$tab->alwayseditable;
|
$this->attribute_alwayseditable[$tab->name]=$tab->alwayseditable;
|
||||||
$this->attribute_perms[$tab->name]=$tab->perms;
|
$this->attribute_perms[$tab->name]=$tab->perms;
|
||||||
|
|||||||
@@ -729,8 +729,7 @@ function dol_get_fiche_head($links=array(), $active='0', $title='', $notab=0, $p
|
|||||||
|
|
||||||
for ($i = 0 ; $i <= $maxkey ; $i++)
|
for ($i = 0 ; $i <= $maxkey ; $i++)
|
||||||
{
|
{
|
||||||
|
if ((is_numeric($active) && $i == $active) || (! empty($links[$i][2]) && ! is_numeric($active) && $active == $links[$i][2]))
|
||||||
if ((is_numeric($active) && $i == $active) || (! is_numeric($active) && $active == $links[$i][2]))
|
|
||||||
{
|
{
|
||||||
$isactive=true;
|
$isactive=true;
|
||||||
$bactive=true;
|
$bactive=true;
|
||||||
@@ -742,7 +741,7 @@ function dol_get_fiche_head($links=array(), $active='0', $title='', $notab=0, $p
|
|||||||
|
|
||||||
if ($i <=$limittoshow || $isactive )
|
if ($i <=$limittoshow || $isactive )
|
||||||
{
|
{
|
||||||
$out.='<div class="inline-block tabsElem'.($isactive ? ' tabsElemActive' : '').((! $isactive && ! empty($conf->global->MAIN_HIDE_INACTIVETAB_ON_PRINT))?' hideonprint':'').'">';
|
$out.='<div class="inline-block tabsElem'.($isactive ? ' tabsElemActive' : '').((! $isactive && ! empty($conf->global->MAIN_HIDE_INACTIVETAB_ON_PRINT))?' hideonprint':'').'"><!-- id tab = '.(empty($links[$i][2])?'':$links[$i][2]).' -->';
|
||||||
if (isset($links[$i][2]) && $links[$i][2] == 'image')
|
if (isset($links[$i][2]) && $links[$i][2] == 'image')
|
||||||
{
|
{
|
||||||
if (!empty($links[$i][0]))
|
if (!empty($links[$i][0]))
|
||||||
|
|||||||
Reference in New Issue
Block a user