Changeset 2969
- Timestamp:
- 07/06/2008 06:43:11 PM (5 months ago)
- Files:
-
- 1 modified
-
trunk/modules/forge/libraries/Form_Dropdown.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/forge/libraries/Form_Dropdown.php
r2706 r2969 52 52 } 53 53 54 public function validate() 55 { 56 // Validation has already run 57 if (is_bool($this->is_valid)) 58 return $this->is_valid; 59 60 // No data to validate 61 if ($this->input_value() === NULL) 62 return $this->is_valid = FALSE; 63 64 // Load the submitted value 65 $this->load_value(); 66 67 // Use array_key_exists because it properly tests NULL 68 return array_key_exists($this->value, $this->data['options']); 69 } 70 54 71 } // End Form Dropdown
