From 8756fcbf5753c92b7db676ea2bce78cf57fdbbc8 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 26 Jul 2011 07:49:24 +0000 Subject: [PATCH] fix warning ->missing argument 1 for select_widget<- : make the parameter optional by assigning a default value --- etemplate/inc/class.select_widget.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.select_widget.inc.php b/etemplate/inc/class.select_widget.inc.php index 3c30959100..7a1d83dbb7 100644 --- a/etemplate/inc/class.select_widget.inc.php +++ b/etemplate/inc/class.select_widget.inc.php @@ -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) {