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:43:53 +00:00
parent 45468c801a
commit 88c088eb86

View File

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