Changeset 2705
- Timestamp:
- 05/28/2008 04:54:46 PM (6 months ago)
- Location:
- releases/2.1.2/modules/forge/libraries
- Files:
-
- 2 modified
-
Form_Checkbox.php (modified) (1 diff)
-
Form_Input.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
releases/2.1.2/modules/forge/libraries/Form_Checkbox.php
r1923 r2705 27 27 { 28 28 // 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; 30 30 } 31 31 -
releases/2.1.2/modules/forge/libraries/Form_Input.php
r2703 r2705 523 523 protected function rule_required() 524 524 { 525 if ($this->value == FALSE)525 if ($this->value === '' OR $this->value === NULL) 526 526 { 527 527 $this->errors['required'] = TRUE;
