Skip to content

Commit

Permalink
Fix var not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jul 16, 2018
1 parent 3710f95 commit e3d9e60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion htdocs/core/class/extrafields.class.php
Expand Up @@ -630,7 +630,7 @@ function update($attrname, $label, $type, $length, $elementtype, $unique=0, $req
private function update_label($attrname,$label,$type,$size,$elementtype,$unique=0,$required=0,$pos=0,$param='',$alwayseditable=0,$perms='',$list='0',$help='',$default='',$computed='',$entity='',$langfile='',$enabled='1')
{
global $conf, $user;
dol_syslog(get_class($this)."::update_label ".$attrname.", ".$label.", ".$type.", ".$size.", ".$elementtype.", ".$unique.", ".$required.", ".$pos.", ".$alwayseditable.", ".$perms.", ".$list.", ".$notused.", ".$default.", ".$computed.", ".$entity.", ".$langfile.", ".$enabled);
dol_syslog(get_class($this)."::update_label ".$attrname.", ".$label.", ".$type.", ".$size.", ".$elementtype.", ".$unique.", ".$required.", ".$pos.", ".$alwayseditable.", ".$perms.", ".$list.", ".$default.", ".$computed.", ".$entity.", ".$langfile.", ".$enabled);

// Clean parameters
if ($elementtype == 'thirdparty') $elementtype='societe';
Expand Down
4 changes: 2 additions & 2 deletions htdocs/core/lib/holiday.lib.php
Expand Up @@ -84,9 +84,9 @@ function holiday_admin_prepare_head()
// Entries must be declared in modules descriptor with line
// $this->tabs = array('entity:+tabname:Title:@mymodule:/mymodule/mypage.php?id=__ID__'); to add new tab
// $this->tabs = array('entity:-tabname); to remove a tab
complete_head_from_modules($conf,$langs,$object,$head,$h,'holiday_admin');
complete_head_from_modules($conf,$langs,null,$head,$h,'holiday_admin');

complete_head_from_modules($conf,$langs,$object,$head,$h,'holiday_admin','remove');
complete_head_from_modules($conf,$langs,null,$head,$h,'holiday_admin','remove');

return $head;
}

0 comments on commit e3d9e60

Please sign in to comment.