diff options
author | alecpl <alec@alec.pl> | 2008-04-28 07:24:21 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-04-28 07:24:21 +0000 |
commit | ff6def42cad6f209005ce6683628218693eda7b7 (patch) | |
tree | aeaccd351670e8f474a91d8a47a8c516b9ab6ff2 /program/include/html.php | |
parent | be71d4027fc1e689044f78aec50734b480930105 (diff) |
#1485016
Diffstat (limited to 'program/include/html.php')
-rw-r--r-- | program/include/html.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/program/include/html.php b/program/include/html.php index e58c2b653..fb86e514f 100644 --- a/program/include/html.php +++ b/program/include/html.php @@ -371,7 +371,7 @@ class html_radiobutton extends html_inputfield } // 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 @@ class html_checkbox extends html_inputfield } // 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 @@ class html_select extends html 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'])); } |