diff --git a/etemplate/inc/class.html.inc.php b/etemplate/inc/class.html.inc.php
index bab6136e94..17c8513a4f 100644
--- a/etemplate/inc/class.html.inc.php
+++ b/etemplate/inc/class.html.inc.php
@@ -47,9 +47,9 @@ class html
{
$arr = array('no','yes');
}
- if (0+$multiple > 0)
+ if (intval($multiple) > 0)
{
- $options .= ' MULTIPLE SIZE="'.(0+$multiple).'"';
+ $options .= ' MULTIPLE SIZE="'.intval($multiple).'"';
if (substr($name,-2) != '[]')
{
$name .= '[]';
@@ -61,9 +61,10 @@ class html
{
$key = implode(',',$key);
}
- while (list($k,$text) = each($arr))
+ foreach($arr as $k => $text)
{
$out .= '