fixed warning in htmlSelect
This commit is contained in:
parent
990f1e14c6
commit
1d584062a2
|
@ -664,7 +664,7 @@ class htmlSelect extends htmlElement {
|
||||||
/** elements */
|
/** elements */
|
||||||
private $elements;
|
private $elements;
|
||||||
/** selected elements */
|
/** selected elements */
|
||||||
private $selectedElements;
|
private $selectedElements = array();
|
||||||
/** descriptive elements */
|
/** descriptive elements */
|
||||||
private $hasDescriptiveElements = false;
|
private $hasDescriptiveElements = false;
|
||||||
/** contains optgroups */
|
/** contains optgroups */
|
||||||
|
@ -700,7 +700,9 @@ class htmlSelect extends htmlElement {
|
||||||
function __construct($name, $elements, $selectedElements = array(), $size = 1) {
|
function __construct($name, $elements, $selectedElements = array(), $size = 1) {
|
||||||
$this->name = htmlspecialchars($name);
|
$this->name = htmlspecialchars($name);
|
||||||
$this->elements = $elements;
|
$this->elements = $elements;
|
||||||
|
if ($selectedElements != null) {
|
||||||
$this->selectedElements = $selectedElements;
|
$this->selectedElements = $selectedElements;
|
||||||
|
}
|
||||||
$this->size = htmlspecialchars($size);
|
$this->size = htmlspecialchars($size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue