Changeset 1450 for trunk/modules/forge/libraries/Form_Input.php
- Timestamp:
- 12/07/2007 03:04:42 PM (12 months ago)
- Files:
-
- 1 modified
-
trunk/modules/forge/libraries/Form_Input.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/forge/libraries/Form_Input.php
r1448 r1450 193 193 $args = is_array($args) ? $args : array(); 194 194 195 array_unshift($args, $this->label 196 ? strtolower($this->label) 197 : $this->name); 195 // Add the label or name to the beginning of the args 196 array_unshift($args, $this->label ? strtolower($this->label) : $this->name); 198 197 199 198 // Fetch an i18n error message … … 260 259 $func = substr($rule, 6); 261 260 262 if ( ! valid::$func($this->value))261 if ($this->value AND ! valid::$func($this->value)) 263 262 { 264 263 $this->errors[$rule] = TRUE;
