Avoiding php warnings

skala
Julio Montoya 15 years ago
parent 43aab9b126
commit dc007460e9
  1. 4
      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];

Loading…
Cancel
Save