Show
Ignore:
Timestamp:
12/07/2007 03:04:42 PM (12 months ago)
Author:
Shadowhand
Message:

Removed Form_Address and Form_Citystatezip. They are more trouble than they are worth, and the input format is not consistent.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/forge/libraries/Form_Input.php

    r1448 r1450  
    193193                                $args = is_array($args) ? $args : array(); 
    194194 
    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); 
    198197 
    199198                                // Fetch an i18n error message 
     
    260259                                        $func = substr($rule, 6); 
    261260 
    262                                         if ( ! valid::$func($this->value)) 
     261                                        if ($this->value AND ! valid::$func($this->value)) 
    263262                                        { 
    264263                                                $this->errors[$rule] = TRUE;