fix warning ->missing argument 1 for select_widget<- : make the parameter optional by assigning a default value

This commit is contained in:
Klaus Leithoff 2011-07-26 07:49:21 +00:00
parent b5d5a38b1d
commit e77fa3ff77

View File

@ -75,7 +75,7 @@ class select_widget
*
* @param string $ui '' for html
*/
function select_widget($ui)
function select_widget($ui='')
{
foreach($this->monthnames as $k => $name)
{