making 1st param for custumfield_widget construct (ui) optional, to avoid warning

This commit is contained in:
Klaus Leithoff 2011-09-13 08:40:23 +00:00
parent 7b0942d998
commit ef6bc0949a

View File

@ -86,7 +86,7 @@ class customfields_widget
var $advanced_search;
function __construct($ui,$appname=null)
function __construct($ui=null,$appname=null)
{
$this->appname = $appname ? $appname : $GLOBALS['egw_info']['flags']['currentapp'];
$this->customfields = config::get_customfields($this->appname);