fixed return of field types

This commit is contained in:
Roland Gruber 2010-06-12 18:01:55 +00:00
parent 467f4ae563
commit 638c4e817d
1 changed files with 3 additions and 3 deletions

View File

@ -333,7 +333,7 @@ class htmlButton implements htmlElement {
}
}
echo '<input type="submit"' . $name . $value . $style . $class . '>';
return array($this->name, 'submit');
return array($this->name => 'submit');
}
}
@ -455,10 +455,10 @@ class htmlSelect implements htmlElement {
}
echo "</select>\n";
if ($this->multiSelect) {
return array($this->name, 'multiselect');
return array($this->name => 'multiselect');
}
else {
return array($this->name, 'select');
return array($this->name => 'select');
}
}