alecpl
2008-04-28 ff6def42cad6f209005ce6683628218693eda7b7
#1485016


1 files modified
8 ■■■■ changed files
program/include/html.php 8 ●●●● patch | view | raw | blame | history
program/include/html.php
@@ -371,7 +371,7 @@
        }
        // set value attribute
        $this->attrib['checked'] = ($value && (string)$value == (string)$this->attrib['value']);
        $this->attrib['checked'] = ((string)$value == (string)$this->attrib['value']);
        return parent::show();
    }
@@ -401,7 +401,7 @@
        }
        // set value attribute
        $this->attrib['checked'] = ($value && (string)$value == (string)$this->attrib['value']);
        $this->attrib['checked'] = ((string)$value == (string)$this->attrib['value']);
        return parent::show();
    }
@@ -510,8 +510,8 @@
        foreach ($this->options as $option) {
            $attr = array(
                'value' => $option['value'],
                'selected' => ((!empty($option['value']) && in_array($option['value'], $select, true)) ||
            (in_array($option['text'], $select, TRUE))) ? 1 : null);
                'selected' => (in_array($option['value'], $select, true) ||
            in_array($option['text'], $select, true)) ? 1 : null);
            $this->content .= self::tag('option', $attr, Q($option['text']));
        }