Changeset 2705

Show
Ignore:
Timestamp:
05/28/2008 04:54:46 PM (6 months ago)
Author:
Shadowhand
Message:

Merging r2704 into 2.1.2

Location:
releases/2.1.2/modules/forge/libraries
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • releases/2.1.2/modules/forge/libraries/Form_Checkbox.php

    r1923 r2705  
    2727                { 
    2828                        // Return the value if the checkbox is checked 
    29                         return $this->data['checked'] ? $this->data['value'] : FALSE; 
     29                        return $this->data['checked'] ? $this->data['value'] : NULL; 
    3030                } 
    3131 
  • releases/2.1.2/modules/forge/libraries/Form_Input.php

    r2703 r2705  
    523523        protected function rule_required() 
    524524        { 
    525                 if ($this->value == FALSE) 
     525                if ($this->value === '' OR $this->value === NULL) 
    526526                { 
    527527                        $this->errors['required'] = TRUE;