Update attrSet initializer to empty string

This commit is contained in:
Kevin 2018-08-24 23:39:08 +08:00
parent a9536064d3
commit a62c938099

View File

@ -43,7 +43,7 @@ class TimezonelistExtended extends Timezonelist
public function create($name, $selected='', $attr='', $htmlencode=true) public function create($name, $selected='', $attr='', $htmlencode=true)
{ {
// Attributes for select element // Attributes for select element
$attrSet = null; $attrSet = '';
if (!empty($attr)) { if (!empty($attr)) {
if (is_array($attr)) { if (is_array($attr)) {
foreach ($attr as $attr_name => $attr_value) { foreach ($attr as $attr_name => $attr_value) {