Changeset ff6def4 in github
- Timestamp:
- Apr 28, 2008 3:24:21 AM (5 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- ac23884
- Parents:
- be71d402
- File:
-
- 1 edited
-
program/include/html.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/include/html.php
r54d830f rff6def4 372 372 373 373 // set value attribute 374 $this->attrib['checked'] = ( $value &&(string)$value == (string)$this->attrib['value']);374 $this->attrib['checked'] = ((string)$value == (string)$this->attrib['value']); 375 375 376 376 return parent::show(); … … 402 402 403 403 // set value attribute 404 $this->attrib['checked'] = ( $value &&(string)$value == (string)$this->attrib['value']);404 $this->attrib['checked'] = ((string)$value == (string)$this->attrib['value']); 405 405 406 406 return parent::show(); … … 511 511 $attr = array( 512 512 'value' => $option['value'], 513 'selected' => ( (!empty($option['value']) && in_array($option['value'], $select, true)) ||514 (in_array($option['text'], $select, TRUE))) ? 1 : null);513 'selected' => (in_array($option['value'], $select, true) || 514 in_array($option['text'], $select, true)) ? 1 : null); 515 515 516 516 $this->content .= self::tag('option', $attr, Q($option['text']));
Note: See TracChangeset
for help on using the changeset viewer.
