Changeset ff6def4 in github for program/include/html.php


Ignore:
Timestamp:
Apr 28, 2008 3:24:21 AM (5 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
ac23884
Parents:
be71d402
Message:

#1485016

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/html.php

    r54d830f rff6def4  
    372372 
    373373        // set value attribute 
    374         $this->attrib['checked'] = ($value && (string)$value == (string)$this->attrib['value']); 
     374        $this->attrib['checked'] = ((string)$value == (string)$this->attrib['value']); 
    375375 
    376376        return parent::show(); 
     
    402402 
    403403        // set value attribute 
    404         $this->attrib['checked'] = ($value && (string)$value == (string)$this->attrib['value']); 
     404        $this->attrib['checked'] = ((string)$value == (string)$this->attrib['value']); 
    405405 
    406406        return parent::show(); 
     
    511511            $attr = array( 
    512512                '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); 
    515515 
    516516            $this->content .= self::tag('option', $attr, Q($option['text'])); 
Note: See TracChangeset for help on using the changeset viewer.