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

This commit is contained in:
Klaus Leithoff 2011-09-13 08:39:24 +00:00
parent 6038c002db
commit 9037a6c039

View File

@ -88,7 +88,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);