From dc007460e91d8ec67520ef86217114fda2f8ffa4 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Fri, 22 Jul 2011 13:59:39 +0200 Subject: [PATCH] Avoiding php warnings --- main/inc/lib/pear/HTML/QuickForm/date.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/inc/lib/pear/HTML/QuickForm/date.php b/main/inc/lib/pear/HTML/QuickForm/date.php index 6b14a9419c..dec88cf047 100755 --- a/main/inc/lib/pear/HTML/QuickForm/date.php +++ b/main/inc/lib/pear/HTML/QuickForm/date.php @@ -416,7 +416,7 @@ class HTML_QuickForm_date extends HTML_QuickForm_group $options = array($this->_options['emptyOptionValue'] => $this->_options['emptyOptionText']) + $options; } } - $this->_elements[] =& new HTML_QuickForm_select($sign, null, $options, $this->getAttributes()); + $this->_elements[] = new HTML_QuickForm_select($sign, null, $options, $this->getAttributes()); } } } @@ -504,7 +504,7 @@ class HTML_QuickForm_date extends HTML_QuickForm_group function toHtml() { include_once('HTML/QuickForm/Renderer/Default.php'); - $renderer =& new HTML_QuickForm_Renderer_Default(); + $renderer = new HTML_QuickForm_Renderer_Default(); $renderer->setElementTemplate('{element}'); parent::accept($renderer); return $this->_wrap[0] . $renderer->toHtml() . $this->_wrap[1];