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

This commit is contained in:
Klaus Leithoff 2011-09-13 08:38:16 +00:00
parent fc1b7cff3c
commit 55ba753e3c

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);